Skip to main content
Participating Frequently
October 17, 2019
Question

How to convert seconds into frame in Script Editor?

  • October 17, 2019
  • 1 reply
  • 925 views

Hello. Im just start scripting in AE, and i need to convert my seconds time into frames time, becouse numbers of "0.333333333" its not accurately. When im addKey() in position like 0.3 and select the key, it just "jump" to before previous key or after second.

Help please!

 

    This topic has been closed for replies.

    1 reply

    Roland Kahlenberg
    Legend
    October 17, 2019

    timeToFrames is what is used for Expressions. I assume it's the same for the Script Editor. AFAIK, there are docs available that cover a lot of scripting topics. You should spend some time downloading these before beginning your learning experience.

    Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
    Participating Frequently
    October 17, 2019
    Thanks, im just change timecode of project to frames and use very similar timeToCurrentFormat()