I have several scenes in a blend file.
Sometimes I want to render all scenes with lower resolution, or mute some of the input nodes in the compositor of all the scenes.
I can accomplish the above by using --python-text and loop statement, but I want to use --python-expr, which can be edited immediately in Notepad because I want to modify variables frequently.
But I don't know how to use loop statement in python-expr.
As far as I know expression should be a single line, but loop statements should be newline and indented.
Q: Is there a way to use loops for --python-expr?
python -c <command>Skeptical re previous comments Are you typing in notepad, copying and pasting to console? Can you elaborate? Recommend looking at https://blender.stackexchange.com/questions/6817/how-to-pass-command-line-arguments-to-a-blender-python-script to pass your "variables". – batFINGER Feb 27 '20 at 11:04