Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions After Effects Local Space

  • After Effects Local Space

    Posted by Colby Turybury on February 7, 2018 at 4:23 pm

    If you have ever spent any time in a 3D package you know that there are two spaces within the software. In Maya it is called World Space and Local Space. In world space no matter where you move an object the transforms stay in traditional up down left right forward backward space. In local space the transforms respect the orientation of the object as if the transform was “parented” to the rotation.

    OK on to my question. I am asking for a 2D object. Lets just say we have a shape layer that is in the shape of an arrow. I want to rotate that arrow to some arbitrary direction. Lets say 25.2. How can the transforms(position) respect the orientation and allow me to move the arow along X or Y based on the new orientation?

    Colby Turybury replied 8 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 7, 2018 at 4:36 pm

    You can use layer space transforms. For example, this would move a layer 100 pixels along its local X axis:

    value + toCompVec([100,0])

    Dan

  • Colby Turybury

    February 7, 2018 at 5:19 pm

    Maybe I am not applying your script correctly. Dragging the X value should cause the object to move in the new direction that X is pointing. I am aware this is a 3D layer and I asked for 2D movement.

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