Hi John,
Try the getValueAt() method instead...
axis_node = nuke.selectedNode()
k = axis_node['translate']
for i in range(680, 700):
print k.getValueAt(i)
-E
On Mon, Aug 22, 2011 at 11:02 PM, jon speer <[email protected]> wrote:
>
> I have used the following code after selecting a camera node with animation
> on it. The k.value() that it prints out stays the same for all frames even
> though it is different. If I change frames manually and run this with out
> for loop I get the expected results. I am using nuke 6.3v1.
>
>
>
> axis_node = nuke.selectedNode()
>
> for i in range(680, 700):
>
> nuke.frame(i)
>
> k = axis_node['translate']
>
> print 'k.value() = %s' %k.value()
>
>
>
> Thanks,
> Jon Speer
>
> ______________________________**_________________
> Nuke-python mailing list
> Nuke-python@support.**thefoundry.co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-python<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