To be a little more thorough:
node['translate'].animation(0) returns the AnimationCurve object at the knob’s
first channel ('x' in the case of the translate knob). Note that it will return
None if the knob is not animated, but testing
node['translate'].isAnimated(index, view) is better way of determining
animation status.
AnimationCurve.expression() returns the expression that is driving its
evaluated result. If the knob is simply keyframed, its AnimationCurve’s
expression will be 'curve.' However, similar to testing for animation,
node['translate'].hasExpression(index) is a better way of determining
expression status.
-Nathan
From: Nathan Rusch
Sent: Thursday, May 17, 2012 1:45 PM
To: [email protected]
Subject: Re: [Nuke-python] grab expression/animation using toScript() perchannel
node['translate'].animation(0).expression()
-Nathan
From: andi
Sent: Thursday, May 17, 2012 1:33 PM
To: [email protected]
Subject: [Nuke-python] grab expression/animation using toScript() per channel
hi, i want to grab any expression/animation data from any knob using
toScript(), the problem i can't get it perchannel , it will return all the
channels as single string. So for example : if the knob is 'translate' , how to
get expression in X channel only. It looks like the toScript() can't do that.
The indexing like : toScript(0) is not working at all.
Thanx.
--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python