wealthychef opened this issue on Nov 05, 2013 · 2 posts
wealthychef posted Tue, 05 November 2013 at 7:39 PM
Hi, I found some code online that contains the following:
bpy.ops.anim.change_frame(frame=1)
When I call this, I get the following error:
bpy.ops.anim.change_frame(frame = 5)
Traceback (most recent call last):
File "<blender_console>", line 1, in
File "/Volumes/MacProHD/cook47-stuff/Programs/graphics/Blender/blender.app/Contents/MacOS/2.68/scripts/modules/bpy/ops.py", line 188, in call
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.anim.change_frame.poll() Expected an timeline/animation area to be active
I don't understand how to fix this. I have a timeline open and can click in it. What is blender trying to tell me?
The origin of the code is here: http://blenderscripting.blogspot.com/2011/07/scripted-keyframing-of-hide-hide-render.html