PDA

View Full Version : Nuke - keyframe animation using expressions



imperialpnd
7th September 2010, 19:59
Hey all,

I was wondering if anyone knows if Nuke can understand keyframe animation through expressions like Shake is able to.

This is an example of what I mean in Shake:

A mix node's expression with a keyframe at frame 1 with a value of 0 and a keyframe at frame 2 with a value of 100 looks like this:

Hermite(0,[0,99.36,99.36]@1,[100,99.36,99.36]@2)

I want to be able to do something similar with Nuke but when you create keyframes in Nuke it just references a "curve". There must be a way to get the data from the curve since it is all based on math.

Any ideas?

metaclay
8th September 2010, 03:23
Nuke have powerfull expression (TCL/Python). You can type expression directly into the box (curve editor) , you can append any math function to it:

curve*.5
curve*-1
abs(curve+300)
curve+(sin(frame)*40)
it depends what u want to achieve? :)

cheers