Hi all - just looking for a clean way to pipe timecode through to my slate.

the dpx timecode starts on frame 1, so when doing a slate on frame 0 the
post house is expecting the timecode to decrease by 1 but at the moment
it's just passing through the same code from frame 1.  they aren't liking
that too much.

looking at the metadata, it appears that dpx/time_code is the frame number
version of the timecode -- as in 86400

and then input/timecode is the time display. as in 01:00:00:00

I can get the dpx/time_code to drop by one easily in modifyMetaData -
[python \{nuke.thisNode().metadata()\['dpx/time_code']-1\}]

but the input/timecode is harder because it's a string.

we're going down the path of splitting that string out and decreasing the
frames display by 1 and accounting for the rollover from 23 to 00.

I guess ideally I'd just convert the dpx/time_code frames display that I've
already decreased back into timecode - anyone know the formula for that or
have a cleaner way to do this?

much thanks
-J
_______________________________________________
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

Reply via email to