Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Opacity by Z-value

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Opacity by Z-value
by Matthew Reithmayr on Aug 26, 2008 at 8:08:52 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

Respond to this post   •   Return to posts index

Re: Opacity by Z-value
by Darby Edelen on Aug 26, 2008 at 8:39:06 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

Respond to this post   •   Return to posts index

Re: Opacity by Z-value
by Matthew Reithmayr on Aug 26, 2008 at 10:06:27 am

That did it!!! Thanks!!!

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

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]