This obviously makes a lot of assumptions, but it should do what you're after. Each item in `keys` will obviously be a list of two floats.
r = nuke.root().frameRange() k = nuke.selectedNode()['translate'] keys = [] for f in xrange(r.first(), r.last()): keys.append(k.getValueAt(f)) -Nathan From: José Alejandro Enríquez Sent: Tuesday, November 11, 2014 2:59 PM To: Nuke Python discussion Subject: [Nuke-python] Get node data every frame and add it to a list Hi, I'm new with python for nuke and relative new in python, I want to get information every frame from a tracking node. The translate knob. This is my code: trans = [ ] range = nuke.FrameRange(nuke.root().firstFrame(), nuke.root().lastFrame(), 1) for i in range: global trans nuke.Root().setFrame(i) print i curframe = nuke.frame() b = nuke.selectedNode()["translate"].value() trans.append(b) print trans But I keep getting the information of the first frame every iteration and not the information of the current frame. Any idea? thanks! -------------------------------------------------------------------------------- _______________________________________________ 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