Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Opacity by Z-value

  • Opacity by Z-value

    Posted by Matthew Reithmayr on August 26, 2008 at 8:08 am

    Hey gang…

    I’ve distributed a bunch of photos into a scattered sphere with 3d Assistants…now I’m looking for an expression that turns everything further away than 0 invisible (I’m planning on doing the opposite to a duplicate of the comp in order to put pics in front of and behind a keyed actor).

    I’m using:

    if (position[2] > 0) 0 else 100

    …to no avail…

    Thoughts?

    Matt Reithmayr
    doulosmedia.com

    Matthew Reithmayr replied 17 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Darby Edelen

    August 26, 2008 at 8:39 am

    [Matthew Reithmayr] “I’m using:

    if (position[2] > 0) 0 else 100

    …to no avail…”

    I’m not familiar with 3D Assistants, but my guess is that your layers probably have complicated child/parent relationships (don’t we all?)

    If that’s the case you’ll need to use:

    if(toWorld(anchorPoint)[2] > 0) 0 else 100;

    I can’t error check that code right now, but it looks right from where i’m sitting 🙂

    Darby Edelen

    NVIDIA
    Santa Clara, CA

  • Matthew Reithmayr

    August 26, 2008 at 10:06 am

    That did it!!! Thanks!!!

    Matthew Reithmayr
    Doulos Multimedia
    Intel Quad 3.0, 13G Ram, OS10.4, AE CS3, FCP

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