Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Getting ‘Separate XYZ POsition’ to work …

  • Getting ‘Separate XYZ POsition’ to work …

    Posted by Dan Cowles on July 30, 2006 at 6:28 am

    Hi —

    I’m trying to animate a layers z-position to an audio amplitude track, and in order to do so I’m using the ‘Separate XYZ Position’ animation preset on the layer I want to animate, then using the following expression on the Z POsition:

    thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)*10

    But, it’s not working. Any help?

    Thanks

    Mike Clasby replied 20 years ago 2 Members · 4 Replies
  • 4 Replies
  • Mike Clasby

    July 30, 2006 at 7:06 am

    I don’t know that preset, but try this:

    Type this expression into the expression box:

    [value[0],value[1],value[2]]

    That just says use the x,y,z

    Highlight the “value [2]” (the Z axis) and pickwhip to a Channel Slider for the Audio Amplitude Layer, to get:

    [value[0],value[1],thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)]

    If you wanted to Wiggle just the Z axis, try this:

    [value[0],value[1],wiggle(5,20)[2]]

  • Dan Cowles

    July 30, 2006 at 11:17 pm

    So, this works, almost … this is the same problem I was having before, my Z position value on my layer is changing correctly, and my X&Y values are remaining static, as they should … however, the layer itself is not moving. I must be doing something stupid/obvious, but can’t seem to figure it out.

    3D is enabled
    My expression is enabled
    I’m on the right layer …

    what else could it be?

  • Dan Cowles

    July 31, 2006 at 12:08 am

    Ack! Never mind, I figured it out … I had view set to ‘Front’, not ‘Active Camera’

  • Mike Clasby

    July 31, 2006 at 5:47 am

    I hate when that happens.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy