Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Translate layer Z position to ‘Shatter’ Z position?

  • Translate layer Z position to ‘Shatter’ Z position?

    Posted by Darren Gardner on November 23, 2007 at 10:43 pm

    What is the conversion formula to go from the Z position data on a 3D layer to the Z position data in the Shatter plug-in?
    The default Z position data in the Shatter plug-in is 2.00. The default position data on a layer is 0. It’s pretty clear that the Shatter plug-in Z position data is NOT 2 pixels deep. Does anyone understand what I mean? Can anyone help me out?

    I need this to line up two objects right on top of each other in the composition window. One object is a true 3D layer, the other is generated with the shatter plug-in.

    Thanks.

    Darren5102

    Dan Ebberts replied 18 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 24, 2007 at 12:26 am

    With this position expression, a 3D layer appears to track shatter’s camera z position pretty well:

    z =( thisComp.layer(“shatter layer”).effect(“Shatter”)(“Z Position”) – 2)*450;
    [value[0],value[1],z]

    Dan

  • Darren Gardner

    November 24, 2007 at 12:57 am

    That’s great, Dan! This should really help! Is there an expression that works the other way – one that’s applied to the Shatter plug-in’s Z position that follows the 3D layer’s Z position?

  • Dan Ebberts

    November 24, 2007 at 1:06 am

    This seems to work:

    thisComp.layer(“other layer”).transform.position[2]/425 + 2;

    Note – 425 is probably a better multiplier for the previous expression as well.

    Dan

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