1
$\begingroup$

How can I pass parameters in python from blender?. I'm try this, but don't work

blender -b file.blend -P file.py "param1" "param2"
$\endgroup$
1
$\begingroup$

This work

Line command

blender -b file.blend -P file.py -- "param1" "param2"

file.py

for i in range(6, len(sys.argv)):
    print(sys.argv[i])
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.