1
$\begingroup$

I am trying to render an animation of gears. In the GUI I have set the options shown in the picture below and when I press Ctrl+F12 the animation renders and saves each frame as a '.jpg' file to the /tmp/ directory.

enter image description here

However, when I try running from the command line using

blender.exe -b .\gear_colored_last.blend -f 1 --render-format PNG --render-output //render_ --debug-all

I get the following output:

enter image description here

As you can see, it tries to save '.jpg' files under /tmp/. The only argument it took was the frame number -f. All other arguments were ignored in favour of those saved in the GUI. How do I overwrite the GUI settings from the command line?

I am using Windows 10 and blender 2.83.

$\endgroup$
1

1 Answer 1

1
$\begingroup$

Blender doesn't get to read any of the arguments after -f 1, as per the manual:

Note

Arguments are executed in the order they are given!

The following command will not work, since the output and extension are set after Blender is told to render:
blender -b file.blend -a -x 1 -o //render

The following command will behave as expected:
blender -b file.blend -x 1 -o //render -a

Always position -f or -a as the last arguments.

$\endgroup$
1
  • 1
    $\begingroup$ Thank you! I feel a bit silly because I read that page multiple times to understand all the options available but for some reason didn't see the note that answered my question. $\endgroup$
    – Takoda
    Aug 7, 2020 at 8:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .