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

If/Else Expression time

New Here ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Hi there.

I am a beginner.

I have created an Adobe after effects and want to use if/Else in the expression (time),

but I don't know the animation, is that ok?

I haven't set it up yet, but let's say it's 00:00-00:10

 

var normal=time*(-180);

var slow=time*(-60);

 

if(normal<10){

 

normal

} else {

 

slow

 

}

 

Of course, I get an error.

Can you help me?

Thank you!

TOPICS
Crash , Error or problem , Expressions , How to , Scripting

Views

364

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

Advocate , Mar 09, 2021 Mar 09, 2021

Im not sure what you are trying to achive here, nor on what property you're applying the expression, but maybe you're lokking for something like this?

if (time < 10) {

    normal;

} else {

    slow;

}

Votes

Translate

Translate
Advocate ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Im not sure what you are trying to achive here, nor on what property you're applying the expression, but maybe you're lokking for something like this?

if (time < 10) {

    normal;

} else {

    slow;

}

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 ,
Mar 10, 2021 Mar 10, 2021

Copy link to clipboard

Copied

LATEST

It's working. Thank you very much.

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