ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Wiggle expression. Precise time to start and stop

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Benoit Bouchard
Wiggle expression. Precise time to start and stop
on Feb 13, 2008 at 3:22:57 pm

I would like to use the wiggle expression with parameter for time to start and stop like this one:

timeToStart = 2;
timeToStop = 4;

if ((time > timeToStart) && (time < timeToStop)){
wiggle(3,25);
}else{
value;
}

but I would like it more precise. Instead of second,I would like to use second/image. I try this way, but it doesn't work

timeToStart = 2;12
timeToStop = 4;12

if ((time > timeToStart) && (time < timeToStop)){
wiggle(3,25);
}else{
value;
}

Is there a way to do it.

Sorry for my bad english. I'm a french guy.

Thank's


Return to posts index

Dan Ebberts
Re: Wiggle expression. Precise time to start and stop
on Feb 13, 2008 at 5:23:35 pm

Like this, maybe:

timeToStart = 2;
frameToStart = 12;
timeToStop = 4;
frameToStop = 12;

d = thisComp.frameDuration;
if ((time > (timeToStart + frameToStart*d)) && (time < (timeToStop + frameToStop*d))){
wiggle(3,25);
}else{
value;
}



Return to posts index

Emmanuel Gobert
Re: Wiggle expression. Precise time to start and stop
on Feb 16, 2008 at 3:39:34 pm

Hi Dan,
don't you think it is possible to link the wiggle expression to a slider, and then to put keyframes when it should start and finish ?



Return to posts index


benoit bouchard
Re: Wiggle expression. Precise time to start and stop
on Feb 16, 2008 at 5:16:08 pm

Finally, that's the way I did it.



Return to posts index

Lance Clayton
Re: Wiggle expression. Precise time to start and stop
on Jan 4, 2013 at 3:26:00 am

Expression Control Slider is the way to go for sure. Will give you ability to switch on the shake at any instance on the timeline, with variable value of shake as well as a smoother reposition after the shake


Return to posts index

Pedro Deltell Colomer
Re: Wiggle expression. Precise time to start and stop
on Feb 2, 2015 at 10:07:21 am

How can I connect the wiggle expression to the slider?

Thanks


Return to posts index


Lance Clayton
Re: Wiggle expression. Precise time to start and stop
on Feb 2, 2015 at 8:21:43 pm

Enter your expression in the desired field such as position, but instead of entering values (such as "wiggle(0.2,1)", 'pickwhip' each of the values to a Slider Control Effect placed on either the same layer or another layer. Usually you'll have 2 Slider Controls, for Wiggle Rate and Wiggle Intensity.

You'll end up with something like:

wiggle([slider 1 name],[slider 2 name])


Return to posts index

Özgür Atmaca
Re: Wiggle expression. Precise time to start and stop
on Mar 7, 2016 at 6:56:58 pm

Hi,

I like to add few more wiggles at different times. How can I achieve that?

What am I doing wrong down there

timeToStart = 2;
timeToStop = 2.5;
timeToStartOne = 5;
timeToStopOne = 5.5;

if ((time > timeToStart) && (time &lt; timeToStop)){
wiggle(12,80);
}else{
value;
}


if ((time > timeToStartOne) && (time &lt; timeToStopOne)){
wiggle(12,80);
}else{
value;
}


Return to posts index

Dan Ebberts
Re: Wiggle expression. Precise time to start and stop
on Mar 7, 2016 at 7:14:13 pm

Try it this way:


timeToStart = 2;
timeToStop = 2.5;
timeToStartOne = 5;
timeToStopOne = 5.5;

if ((time > timeToStart) && (time < timeToStop)){
wiggle(12,80);
}else if ((time > timeToStartOne) && (time < timeToStopOne)){
wiggle(12,80);
}else{
value;
}



Dan



Return to posts index


Özgür Atmaca
Re: Wiggle expression. Precise time to start and stop
on Mar 7, 2016 at 7:27:40 pm

appriciate that!


Return to posts index

Tony Thomas
Re: Wiggle expression. Precise time to start and stop
on Mar 15, 2013 at 8:25:55 pm

I've found that decimals work.

timeToStart = 2.25
timeToStop = 4.5

if ((time > timeToStart) && (time &lt; timeToStop)){
wiggle(3,25);
}else{
value;
}


Return to posts index

gaurav kumar
Re: Wiggle expression. Precise time to start and stop
on Jun 27, 2019 at 2:46:39 pm

is there any way to flickering in ,hold the wiggle opacity to 100 for few frames than flickering out

Re: Wiggle expression. Precise time to start and stop


Return to posts index


Tony Thomas
Re: Wiggle expression. Precise time to start and stop
on Jun 27, 2019 at 2:56:37 pm

If I understand your question correctly, I think you'll have to accomplish this using two layers. The top layer will display the first effect. Have it disappear to reveal the lower layer that is lined up perfectly below it (should be undetectable to the eye), then apply the second effect to the lower layer after whatever pause you'd like to achieve.


Return to posts index

gaurav kumar
Re: Wiggle expression. Precise time to start and stop
on Jun 28, 2019 at 4:35:36 am

Tony Thomas Thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]