---
name: "pto_lensstack"
section: "1"
platform: "linux"
package: "hugin"
version: "2025.0.1-5"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pto_lensstack"
---

# pto\_lensstack(1)

modify assigned lenses and stack in pto files

## NAME

pto\_lensstack - modify assigned lenses and stack in pto files

## SYNOPSIS

**pto\_lensstack** \[options\] input.pto

## DESCRIPTION

**pto\_lensstack** can manipulate lenses and stacks in Hugin .pto project files. This is intended for use in scripting.

## USAGE

```
   pto_lensstack --output=output.pto --new-lens|--new-stack|--change-lens|--change-stack images input.pto
```

## OPTIONS

- **--new-lens**

  - **--new-stack**

  For assigned a new lens or stack to an image provide a list of image numbers. The counting starts with zero. Several images can be given at same time. Separate them with a comma.

  Examples:\
     pto\_lensstack --new-lens i1,i3 input.pto\
     pto\_lensstack --new-stack i2,i4 input.pto

  will assign a new lens to image 1 and 3 and a new stack to images 2 and 4.

- **--change-lens**

  - **--change-stack**

  For changing the lens or the stack provide a list of image numbers and the new lens/stack number. For both the counting starts with zero and you can supply several images separated by a comma at the same time.

  Examples: \
     pto\_lensstack --change-lens i1=4,i5=1 input.pto\
     pto\_lensstack --change-stack i2=0,i4=0 input.pto

- **-o\|--output**

  Output a pto file with the given filename. If not given it will append "\_lens" to the input filename.

- **-h\|--help**

  Display help

## AUTHORS

Thomas Modes
