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

add starting point to this expression

New Here ,
Jan 11, 2018 Jan 11, 2018

Hello,

how can I add a specific starting point to this expression? I don't want it to start at layer, I would like to be able to edit the starting point.

I tried adding if time etc. but the expression doesn't work properly, I mean, it starts at the time I add, but the values are not correct, as if the expression values, which at the beginning of the layer are correct, at the starting point of the expression are not the same.

Thank you

Position:

yVelocity = 200; //pixels per second

oscFreq = 1.5; //oscillations per second

oscDepth = 35; //oscillation depth (pixels)

drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,

yVelocity*time,0]

1.0K
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

correct answers 1 Correct answer

Valorous Hero , Jan 11, 2018 Jan 11, 2018

The following should work if you are moving the layer's in point. If the layer has to start at Time=0, then Split (Edit Menu>Split) the Layer

timeScalar = time-inPoint;

yVelocity = 200; //pixels per second

oscFreq = 1.5; //oscillations per second

oscDepth = 35; //oscillation depth (pixels)

drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

value + [oscDepth*Math.sin(oscFreq*Math.PI*2*timeScalar ) + drift *timeScalar ,

yVelocity*timeScalar ,0]

-----------------

Translate
Valorous Hero ,
Jan 11, 2018 Jan 11, 2018

The following should work if you are moving the layer's in point. If the layer has to start at Time=0, then Split (Edit Menu>Split) the Layer

timeScalar = time-inPoint;

yVelocity = 200; //pixels per second

oscFreq = 1.5; //oscillations per second

oscDepth = 35; //oscillation depth (pixels)

drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

value + [oscDepth*Math.sin(oscFreq*Math.PI*2*timeScalar ) + drift *timeScalar ,

yVelocity*timeScalar ,0]

-----------------

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
New Here ,
Jan 11, 2018 Jan 11, 2018

thank you, it works perfectly. You're my new idol!

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 ,
Jan 11, 2018 Jan 11, 2018
LATEST

If your question was answered then please click on the Helpful button.

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