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

After Effects, Expression : Time + Slider Control (Time*effect("Slider Control")("Slider")

New Here ,
Nov 21, 2017 Nov 21, 2017

Copy link to clipboard

Copied

Hello,

First post here.

I'm having big troubles understanding what's wrong with my simple expression.

What i'm trying to achieve : I want to make a layer rotate with the time. Like this : Rotation = (Time*100)

So like this, at 1 second, the value of rotation will be 100°.

So far so good.

Then, I want to make this rotation stop, and control when it stops.

So i add a slider control.

I put the value on my slider control to 100, and change the expression on my rotation to : Time*effect("Slider Control")("Slider")

So right now, nothing changed.

But then i animate the value of my slider control. One value to 100, move forward in time, add another value to 0.

And now everything goes strange. My rotation goes in positive values and then, in the middle of it, change rotation and goes into negatives values...

I don't understand why it does this, specialy since taken separatly, both function are linear.

If you guys have an idea about this, this would be awesome!

Thanks a lot.

Loick

TOPICS
Expressions

Views

10.4K

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

LEGEND , Nov 21, 2017 Nov 21, 2017

It's more complicated than that. By simply animating the slider value you are doing an absolute multiplication and even a million multiplied by zero is still zero. You have to integrate the existing values to retain them. read this article of Dan Ebberts' for more detailed explanations and code snippets:

Expression Speed and Frequency Control

Mylenium

Votes

Translate

Translate
LEGEND ,
Nov 21, 2017 Nov 21, 2017

Copy link to clipboard

Copied

It's more complicated than that. By simply animating the slider value you are doing an absolute multiplication and even a million multiplied by zero is still zero. You have to integrate the existing values to retain them. read this article of Dan Ebberts' for more detailed explanations and code snippets:

Expression Speed and Frequency Control

Mylenium

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 ,
Nov 21, 2017 Nov 21, 2017

Copy link to clipboard

Copied

LATEST

Thanks a lot

Loick

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