-
real value to change comp duration
Hi guys! I’m working in a script to change the duration (and other things) of the or selected comps. The problem is that the value that I get when I use
alert(selectedComps.duration)is very strange for me. In the timeline we can see fps and timecode (0:00:00:00) but the value I get from that alert is “x.yyy”, I can see that x is the amount in seconds of the composition but after “.” they are decimals that I cant figure it out how it works. I soupose is the fps divided by a number I dont know…I’m thinking in a text box to get the first number (seconds), do praseFloat() and get a real number. Also other box to get the frames and apply a math function to it. Do you guys knows any math function I can use?
Thanks!
