Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling “3D” box with expressions.

  • Controlling “3D” box with expressions.

    Posted by Jeff Murchison on February 7, 2009 at 6:35 pm

    Alright, so I’ve made myself a “3D” box in AE. I just took 4 solids (didn’t need a back or a bottom), and aligned them in 3D space to form a mock-3D box.

    The first problem I’m having is linking just the y value of each of the faces to the slider control on a null object I’ve got. Here’s the code I’m using:

    [transform.position[1],thisComp.layer("BoxNull").effect("Slider Control")("Slider")]

    and while the y value is now linked to the value of the slider, both the x and z have also changed (the x actually changed to the previous value of y, and the z changes to 0).

    So, can anyone tell me why the x and z changed? I need them to stay at fixed values.

    Jeff Murchison replied 17 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 7, 2009 at 9:18 pm

    Try this:

    [transform.position[0],thisComp.layer(“BoxNull”).effect(“Slider Control”)(“Slider”), transform.position[2]]

    Dan

  • Jeff Murchison

    February 7, 2009 at 11:40 pm

    I actually figured it out after trying it on a different letter (same thing that you posted, actually). Thanks anyways though!

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