Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get absolute transform values? (3D parented objects)

  • Get absolute transform values? (3D parented objects)

    Posted by Tyler Joynt on January 24, 2014 at 4:05 pm

    I’m building a pretty simple animation, but I know I could use this in other places too.

    Basically its a 3×3 grid of rectangles that rotate in 3D space and reveal something else on the other side.
    But I want to be able to write an expression so that when the front or back pieces reach a certain degrees, their Opacity goes to 0, so you can see the other side. Had issues with z-fighting and stuff, so figured this would be way more efficient than manually cutting layers.

    I found a Dan Ebberts script in here, but it was for 2D layers and I couldnt get it to work with 3D ones.

    Any ideas?

    Tyler Joynt replied 12 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Tyler Joynt

    January 24, 2014 at 4:38 pm

    Not exactly answering my question about absolutes, but I guess this works in finding it sorta manually:

    angle = transform.yRotation%360-thisComp.layer(“Null 1”).transform.yRotation;
    if (angle > 90)
    0
    else
    100

  • Dan Ebberts

    January 24, 2014 at 5:05 pm

    >I found a Dan Ebberts script in here

    I’m guessing you’re not talking about this one:

    https://www.motionscript.com/design-guide/invisible-facing-away.html

    Dan

  • Tyler Joynt

    January 24, 2014 at 5:15 pm

    oh lord, how did i miss that.

    thanks a ton, that’s great!

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