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

Re: Random layer position constrained by another layer's alpha

Cow Forums : Adobe After Effects
FAQ   •   VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


cowcowcowcowcow
Re: Random layer position constrained by another layer's alpha
by Mike Clasby on Jan 6, 2008 at 8:10:49 am

Oh, I see what you're trying to do.

Yes, you probably can, err, maybe Dan can, ask over at the Cow Expression Forum:

http://forums.creativecow.net/viewforum/227

I think if you combine this position expression from Colin:

minX = 0;//Minimum x depth value
maxX = 1000;//Maximum x depth value
minZ = 0;//Minimum z depth value
maxZ = 2000;//Maximum z depth value
seedRandom(index, true);
x = random(minX,maxX);
z = random(minZ, maxZ);
[Math.round( x), position[1], Math.round( z )]

With an Opacity expression that is 100 when there is a Collision Detection, and 0 when not, from Dan's page:

http://www.motionscript.com/design-guide/collision.html

But I don't have AE CS3 or the expression finesse to do it.

Alternatively, you could just use Colin's Position expression above, with the min/max set to hit the island, and then turn off the eyeballs of all trees landing off-island, and shy them so they don't clutter up the stack. That way no collision detection necessary... er, actually you would be performing the collision detection, manually.



Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:


Related Threads:
Random layer position constrained by another layer's alpha



Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]