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

loopIn AND loopOut script is awesome, but needs a fix for the new Javascript version.

New Here ,
May 17, 2019 May 17, 2019

Copy link to clipboard

Copied

So I've been using this script ALL the time:

//loop in AND out:

if (time < key(1).time) loopIn();

if (time >= key(1).time && time <= key(numKeys).time) value;

if (time > key(numKeys).time) loopOut();

What is does is, it not only loops keyframes IN but also OUT. Extremely handy.

However, it no longer works in the Javascript version. Only in the Legacy version of the After Effects Expressions. I'm not super script savvy, and I'm wondering what would make this script work again!

If you make it work I will promise you it will make a lot of people happy when they find it haha... (I use it everywhere).

Thank you!

TOPICS
Expressions

Views

501

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , May 17, 2019 May 17, 2019

if (time < key(1).time) loopIn();

else loopOut();

Votes

Translate

Translate
Enthusiast ,
May 17, 2019 May 17, 2019

Copy link to clipboard

Copied

if (time < key(1).time) loopIn();

else loopOut();

Votes

Translate

Translate

Report

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
New Here ,
May 17, 2019 May 17, 2019

Copy link to clipboard

Copied

LATEST

This seems to work perfectly! It's much shorter too! Thank you very much for your quick answer

Votes

Translate

Translate

Report

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