Skip to main content
master817199
Participant
January 28, 2023
Answered

Two expressions on a single property

  • January 28, 2023
  • 1 reply
  • 524 views

Hello, I have a wiggle and I need to add a loopOut in the same property of position.

 

A shape goes left to right, in the Position property I stated below.

loopOut()
wiggle(3,20)

In this case, After effect take only the bottom code, so the shape wiggles but does not loopout.

 

How can I adopt both expression on one property?

This topic has been closed for replies.
Correct answer Dan Ebberts

Try it this way:

w = wiggle(3,20) - value;
loopOut() + w

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
January 28, 2023

Try it this way:

w = wiggle(3,20) - value;
loopOut() + w
master817199
Participant
January 28, 2023

Could you teach me what does "- value" mean?
I did it without "- value", shape appeared unexpected place.

I can not figure out how it controles shape to be appeared from correct place.

Dan Ebberts
Community Expert
Community Expert
January 28, 2023

The wiggle() result always includes the keyframed/static value of the property it's applied to. Subtracting value isolates just the wiggle component so that you can add just that part to the result of loopOut(). Otherwise you'd end up with the value in there twice (once from wiggle() and once from loopOut()).