When setting the file knob on the read, use 
<Read>['file'].fromUserText('/path/to/my/file.mov') instead of just calling 
.setValue().

-Nathan



From: Fredrik Averpil 
Sent: Monday, November 21, 2011 10:44 AM
To: Nuke Python discussion 
Subject: [Nuke-python] Autodetecting frame range when creating a Read

When you hit "r" to create a Read node, and point it to a .mov file, the 
resulting read node will have its first and last frame detected from the .mov, 
somehow. 

How can this be done with Python?
Either way I do this, it seems the frame range cannot be detected, like from 
the interactive menus. 

How do they do it?




// Fredrik



--------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to