I am trying to execute my command with two arguments in terminal:
blender -b Scripting_Testing.blend -P background_job.py -- 1 2
I have used:
import sys
try:
index = sys.argv.index("--") + 1
except ValueError:
index = len(sys.argv)
sys.argv = sys.argv[index:]
....
....
foot_position = sys.argv[1]
angle_movement = sys.argv[2]
(Used from Here)
I get:
IndexError: list index out of range