I’m new to blender’s python interace. I was hoping that someone could help me out with an error that I get when I run a python script from the command line. The script runs fine when I run it from within Blender’s script editor and hit run script. But when I run the exact same script from the command line using “blender -P some_script.py”, the script crashes with the following error:
File “C:\Program Files (x86)\Blender Foundation\Blender\2.62\scripts\modules\bpy\ops.py”, line 180, in call
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.anim.change_frame.poll() failed, context is incorrect
I am running the “Object Action” script (bouncing ball) from the following source:
Another thing I tried was to provide an empty .blend file to the blender command on the command line, but this didn’t yield any success either.
Any thoughts on what might be causing this issue? Would really appreciate help on this issue.