Activity › Forums › Adobe After Effects Expressions › x y expressions
-
x y expressions
Posted by Criis Daw on November 10, 2005 at 2:08 pmHelp !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I am trying to get me head round expressions.
How can i make the y position of a layer be affected by the slider variable of an audio amplitude layer without the x position being affected.Cheers if anyone can help me.
Any one know any good books or tutorials on expressions ??
thanks
love to you all
Mike Clasby replied 19 years, 5 months ago 3 Members · 5 Replies -
5 Replies
-
Ryan Hill
November 10, 2005 at 6:34 pmOkay. I’m afraid I don’t have AE infront of me right now, so I’m missing a lot of details, but…
A position is represented as a list of two values.
[x,y]So to access just the X value, you go postion[0] and for the y value, you use position[1].
So, what you’ll want will look something like
[thisComp.layer(“audiolayer”),value[1]]
But like I said, I might have the syntax wrong, because I don’t have AE in front of me. It could be:
(thisComp.layer(“audiolayer”),value[1])CHeck this while you’re at it:
https://www.creativecow.net/cgi-bin/page_wrapper.cgi?forumid=&page=/articles/bassett_doug/connections/index.html -
Mike Clasby
November 10, 2005 at 7:14 pmPickwhip the layer’s position to the channel slider in the Audio Amplitude Layer, by Alt clicking the position stop watch (layer to be moved by the sound)
then pickwhip that to the slider of the channel you want in the Audio Amplitude Layer. You get a position expression like this:temp = thisComp.layer(“Audio Amplitude”).effect(“Left Channel”)(“Slider”);
[temp, temp]Change the bottom line to:
value + [0,temp,0]
This is from an earlier post:
Name: Dan Ebberts
Date: Aug 11, 2004 at 9:07 am
Subject: Re: I want my expression to effect only one axis of a layer’s positionStart here if you suffer from expression-transgression:
https://www.motionscript.com/
https://www.jjgifford.com/expressions/index.html -
Criis Daw
November 10, 2005 at 10:22 pmHEY HEY hEY it works !!!!!!!!!!!!!!!!
let the revolutuion beginhow do you change it to move on the x axis??
thanks
-
Mike Clasby
November 11, 2005 at 2:07 amChange the last line to this:
value + [temp, 0, 0]
Actually I just realized the last line is set up for 3D [x, y, z],
so to wiggle on the z (if 3D button is on) would be:value + [0, 0, temp]
Reply to this Discussion! Login or Sign Up