Without any kind of sanity checking: t = nuke.createNode('Transform') ct = nuke.toNode('CurveTool1') t['translate'].copyAnimation(1, ct['intensitydata'].animation(1))
-Nathan From: Flan3ur Sent: Wednesday, December 12, 2012 4:01 AM To: nuke-python@support.thefoundry.co.uk Subject: [Nuke-python] Dealing with lists values over time Hi there, Here i bring a noobish python problem that i´m facing at and i would need some help, if possible. Here´s the code: t = nuke.createNode("Transform") h = t.knob("translate") dat = nuke.toNode(“CurveTool1”)[‘intensitydata’].value() // i created it before and sampled some greyscale image// c = h.setValue((1,dat[1])) What i want i just to pass CurveTool1 Intensitydata.value() to the value of Transform1 translate.y The problem is that i´m not being able to pass each value of the list at each frame, just one single value by indexing it like this: dat[1]) // i could use [1],[2],[3],[4] as i sampled a greyscale image. Probably i could just parent intensity.g to translateY. But i wonder if there is a way to do it by scripting.. Thanks a lot for the help, in advance -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python