Baking Animation from a Python Script Button

Hey Group –

What is the best way to bake some animation data from a Python Script Button knob? Is there a better way than just looping over a frame range? I’m currently trying the loop method and asking for the value while on each frame, but it only returns the value from the original frame. How can this be done to get the updated value at each frame?

Code:

for n in range(1001,1005):
    nuke.frame(n)
    print nuke.frame(), nuke.thisNode().knob("animatedInt").value()


Thanks!

Scott Willman
Culver City, CA

No Responses to “Baking Animation from a Python Script Button”

Post a Comment