Page 1 of 1

MovieFileIn/Python Timecode readout

PostPosted: Thu May 10, 2018 8:08 am
by bLackburst
Optimised readout of movieFileIn timecode and/or equivalent arbitrary frame<->timecode converter in python.
The time component has a .timecode member, but movieFileIn TOP doesn't. There was also Tscript for frametotimecode and timecodetoframe but I have no idea how to use them and I think we've moved on, considering they're not in the docs anymore.
I've built comps achieving this with datetime python module, sequences of CHOPs and DATs etc but there's downsides to all of them. Can I ask for a high-performance, built-in way of doing this please?

Re: MovieFileIn/Python Timecode readout

PostPosted: Fri May 11, 2018 11:22 am
by rob
One quick workaround is to create a time component.
Set it's rate to the movie rate,
and send the current movie index into the 'clock' CHOP inside. (renamed to frame).
You can delete all the other operators inside the time COMP.

You can then access that components .timecode member.

Re: MovieFileIn/Python Timecode readout

PostPosted: Thu Oct 11, 2018 4:19 am
by bLackburst
This timecode readout appears to be buggy at the start, need to put a math with ceiling integer, otherwise it goes from 1->0->1->2... leaving it a frame behind.