Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to convert seconds into frame in Script Editor?

Explorer ,
Oct 17, 2019 Oct 17, 2019

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!

 

880
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 17, 2019 Oct 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 17, 2019 Oct 17, 2019
LATEST
Thanks, im just change timecode of project to frames and use very similar timeToCurrentFormat()
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines