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
heddheld posted Wed, 06 November 2013 at 1:48 AM
first off thanks for the link I keep saying I'm going to learn python an this looks like a good site for that!!!
ok so now you know I know nothing about python, but just cos you can click in timeline dont mean it has an animation, try making a simple one just a cube moving and see what error you get then , this is purely a guess so fingers crossed someone who does know will pop in