Hi, I want to pass on some command line arguments to my python script. For example, now I run my script as “blender -b 1.blend -P 1.py” which does some rendering in background and quits. Now I want to pass some arguments like “blender -b 1.blend -P 1.py arg1 arg2” and access arg1 and arg2 from inside the 1.py script. Can some one tell me how to do this? Thanks much in advance.
a quick solution would be to make the script read some my_input.txt file for the input parameters, just change the text, run the commandline, works. Not maybe elegant, but at least it should work.
echo "am i stupid" > my_input.txt && blender -P 1.py