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

add starting point to this expression

New Here ,
Jan 11, 2018 Jan 11, 2018

Copy link to clipboard

Copied

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]

Views

853

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

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]

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

Votes

Translate

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

Copy link to clipboard

Copied

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]

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

Motion Graphics Brand Guidelines & Motion Graphics Responsive Design Toolkits

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

LATEST

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

Motion Graphics Brand Guidelines & Motion Graphics Responsive Design Toolkits

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