This is perfect.  Learn something new everyday.

Thanks Nathan.

Michael


> On Mar 16, 2017, at 12:23 PM, Nathan Rusch <[email protected]> wrote:
> 
> I'm not sure this is exactly what you're getting at, but if you use 
> `read['file'].fromUserText('/path/to/inputFile.mov')`, Nuke will open 
> and inspect the .mov's header and reset the frame range knobs on the 
> read node appropriately.
> 
> -Nathan
> 
> 
> On 3/15/2017 8:45 PM, Michael Hodges wrote:
>> In order to automate the replacement of a frame sequence in a read node 
>> using python, I simply replace the read's “file” knob and reset the frame 
>> range knobs by counting the files in the frame sequence (using Glob in my 
>> case).
>> 
>> However, if I wished to update the file with a Quicktime .Mov it will only 
>> update the frame range by manually selecting a .mov file in the file finder 
>> popup.  If I add the via python I still get stuck with the previous frame 
>> range.
>> 
>> Is there a better way to update the read file to simulate a new selection 
>> or, perhaps, a good python way to read the .mov file length from the file's 
>> metadata?
>> 
>> Thanks,
>> 
>> Michael_______________________________________________
>> Nuke-users mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to