On 04/04/11 14:55, Cyril Pichard wrote:
Hi all,
Is there any way to get a copy of a curve belonging to a
LookupCurves_knob ?
I cannot find any examples of that.
Basically I would like to retrieve a master curve and inverse it and
do some python processing on the inverse curve.
Thanks a lot
Cyril
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
I found an ugly way using script.
lutsKnob = curveNode["lut"]
curvesScript = lutsKnob.toScript()
masterScript = (re.match(".*(master {(.*)}).*", curvesScript)).group(2)
master = nuke.AnimationCurve( None, 0, "master" )
master.fromScript( masterScript )
Cheers
Cyril
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python