Hello,
The script I'm working on uses function sf.ui.proTools.clipDoForEachSelectedClip and I want to get length of each selected clip. Problem is that this function set counter to samples.
When I tried to write function to change counter to timecode, get clip length and then change counter back to samples, I get error.
So Is there any clever way to convert length (samples) saved in variable to length (TC), besides to do with with math?
Thank you very much!
Christian Scheuer @chrscheuer2020-11-11 20:17:02.200ZHi Samuel,
It should be possible to convert the counter to Timecode and convert it back. If you're having trouble getting it to work, please post your script here and your log (or even better, use the Script Help button - step 1 in this article - then we'll both get your script and your error logs)
Christian Scheuer @chrscheuer2020-11-11 20:17:29.941ZOut of curiosity - what do you need the length in Timecode for?
As in, what's the full workflow?
Samuel Škubla @Samuel_SkublaNormalizing and renaming before delivery.
I often have multiple versions with different length on one timeline, and after printing all mixdowns, I use LC2n for final leveling. Then renaming all clips with Projectname_length_date and loudness sufix, as there are often versions for broadcast and online.
Christian Scheuer @chrscheuer2020-11-11 20:40:32.995ZGotcha. Yea for that I'd just do as you were already trying to. Please use the Script Help so we can see it and help you with whatever was causing it to fail.
- In reply tochrscheuer⬆:
Samuel Škubla @Samuel_SkublaIt works. My bad. I tried to change counter, when there was rename window opened. I reordered few lines and everything works.
Christian Scheuer @chrscheuer2020-11-11 20:51:10.786ZAwesome :)