Tue, Dec 3, 6:15 AM CST

Renderosity Forums / Blender



Welcome to the Blender Forum

Forum Moderators: Lobo3433 Forum Coordinators: LuxXeon

Blender F.A.Q (Last Updated: 2024 Dec 01 9:08 pm)

Welcome to the Blender Forum!


   Your place to learn about Blender, ask questions,
   exchange ideas, and interact with the other Blender users!


   Gallery | Freestuff | Tutorials

 

Visit the Renderosity MarketPlace. Your source for digital art content!

 





Subject: Python script problem setting keyframes


wealthychef ( ) posted Tue, 05 November 2013 at 7:39 PM · edited Mon, 02 December 2024 at 9:22 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


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.