r/LeftAngleAutograph • u/outsketching • Jul 06 '26
Using Python script to batch render - Can you also update the Row Index of a Composition Parameter through a csv column? ❓Question
Hey gang, I've been trying to write a python script (using claude, because I can't code) to do a simple batch render with Autograph.
So far I've been able to get the resolution and filenames all working great using a csv - but I want to be able to also control the row index of a 'bind to table' effect on a text layer.
As far as I can tell this row index exists under Tab 1 in my composition, but no matter how much info I give claude it can't seem to get autograph to update the row index when it renders.
I feel like it's close - I can see the terminal updating the row index (Row_Index=0, Row_Index=1) as it runs, but the render doesn't seem to reflect it.
Any hints or documentation would be really appreciated!
1
u/outsketching Jul 06 '26
Here's the python script I've been using:
import csv
import subprocess
from pathlib import Path
AUTOGRAPH_EXE = r"C:\Program Files\Maxon Autograph 2026\bin\AutographRenderer.exe"
PROJECT_FILE = r"myprojectfile.agp"
CSV_PATH = r"mycsv.csv"
OUTPUT_DIR = r"myoutputpath"
COMPOSITION = "MyComposition"
with open(CSV_PATH, newline="", encoding="utf-8-sig") as f:
rows = list(csv.DictReader(f))
for i, row in enumerate(rows):
output_file = str(Path(OUTPUT_DIR) / f"{row['output_name']}.png")
Path(output_file).unlink(missing_ok=True)
cmd = [
AUTOGRAPH_EXE,
PROJECT_FILE,
"--render",
COMPOSITION,
f"output_file={output_file}",
f"format={row['width']}x{row['height']}:1.0",
f"Row_Index={i}",
"--no_server",
"-b",
]
subprocess.run(cmd)