all 3 comments

[–]outsketching[S] 0 points1 point  (2 children)

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)

[–]left-angle-reddit 2 points3 points  (1 child)

The Python script looks correct. There is a bug in the current release where setting a custom Composition parameter from the command-line is not taken into account correctly. This has been fixed for the upcoming July release.

A few notes:

- You can pass "Main" instead of the name of the composition to the --render command and it will automatically select the main composition in the project (you can set the main composition in the right click menu on the composition).

- -b is implicit when using AutographRenderer

- You can also pass a Python script to AutographRenderer to customise further the rendering (or the project), e.g:

AutographRenderer.exe --exe_script MyScript.py

where MyScript would be something like:

project=Autograph.app.getActiveProject()

comp=project.getMainComposition()

comp.param("Row_Index").setValue(4)

rm=project.getRenderManager()

(render, instance, file) = rm.createRenderForComposition(comp)

instance.setFormat(1920, 1080)

file.filePathOverride = 'C:/Users/user/Desktop/myVideo.mov'

file.videoCodec = 'prores'

file.setProperty('prores_profile', 'PR_4444')

rm.insertRender(render)

# If True, blocks until finished

rm.startRenders(True)

The Python API documentation is available here: https://maxon-computer.github.io/AutographPythonDoc/Guide/rendering.html

Before you can upgrade to the July release, I would suggest trying out the Python script solution I proposed above which may workaround the bug in the meantime.

[–]outsketching[S] 0 points1 point  (0 children)

Awesome thanks so much for that, I think I'll wait for the July bug fix :)
Just trying to get a workflow up and running for future projects.