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

Start/Stop Time Expression

New Here ,
Jul 06, 2016 Jul 06, 2016

Hi,

I'm new to expressions and I need to start and stop the expression at specific frames.

My expression as follows:

f = effect("Frequency")(1);

p = effect("Period")(1);

Math.cos(p * textIndex/textTotal + time*f)*50

Thanks in advance for all your help!

TOPICS
Expressions
2.4K
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

Community Expert , Jul 06, 2016 Jul 06, 2016

I'm not sure if this is what you're after, but this expression will run from frame 10 to fame 30--outside that range, it will be like the expression isn't there:

fStart = 10;

fStop = 30;

if (time >= framesToTime(fStart) && time < framesToTime(fStop)){

  f = effect("Frequency")(1);

  p = effect("Period")(1);

  Math.cos(p * textIndex/textTotal + time*f)*50;

}else

  value

Dan

Translate
Community Expert ,
Jul 06, 2016 Jul 06, 2016

I'm not sure if this is what you're after, but this expression will run from frame 10 to fame 30--outside that range, it will be like the expression isn't there:

fStart = 10;

fStop = 30;

if (time >= framesToTime(fStart) && time < framesToTime(fStop)){

  f = effect("Frequency")(1);

  p = effect("Period")(1);

  Math.cos(p * textIndex/textTotal + time*f)*50;

}else

  value

Dan

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 ,
Jul 06, 2016 Jul 06, 2016

Thanks so much Dan of the prompt reply!

Do you know how can I slow down the wavy effect from my expression all the way to zero? I know I'm abusing at this point!

Thanks again.

Federico

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
Community Expert ,
Jul 06, 2016 Jul 06, 2016
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 ,
Jul 06, 2016 Jul 06, 2016

Thanks for the link Dan. I'll get into it.

F

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 ,
Jul 06, 2016 Jul 06, 2016
LATEST

Hey Dan,

I found a solution using Slider Controls on my expression and it worked just fine.

Thanks again!

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