Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

particle world position link to null

Cow Forums : Adobe After Effects Expressions
cow
particle world position link to null
by jonas espinoza (espinoza) on Jul 24, 2008 at 6:23:13 pm

having trouble linking the individual position x, y, z values with the position values from a 3D enabled null

the particle world emitter still works until i move the null in any direction and it just disappears

[url=http://img185.imageshack.us/my.php?image=picture3oe6.png][img=http://img185.imageshack.us/img185/3505/picture3oe6.th.png][/url]




Respond to this post     Return to posts index

cow
Re: particle world position link to null
by jonas espinoza on Jul 24, 2008 at 6:50:53 pm

dang, that link didnt work, lets try this one

[URL=http://img185.imageshack.us/my.php?image=picture3oe6.png][IMG]http://img185.imageshack.us/img185/3505/picture3oe6.th.png[/IMG][/URL]



Respond to this post     Return to posts index

cow
Re: particle world position link to null
by Dan Ebberts on Jul 24, 2008 at 9:18:53 pm

This should work for x:

p = thisComp.layer("Null 1").transform.position;
d = (p - [thisComp.width/2,thisComp.height/2,0])/thisComp.width;
d[0]


Then just change the last line to d[1] for y and d[2] for z.

You'll probably need to fiddle with the effect's camera paramters to get it to match up exactly.

Dan



Respond to this post     Return to posts index


cow
Re: particle world position link to null
by jonas espinoza on Jul 24, 2008 at 9:27:22 pm

thanks - does particle world use some kind of wierd comp size coordinate units?



Respond to this post     Return to posts index

cow
Re: particle world position link to null
by Dan Ebberts on Jul 24, 2008 at 9:32:25 pm

It appears that 1.0 in Particle World equates to the width of the comp, with the center of the default view being [0,0,0].

Dan



Respond to this post     Return to posts index

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


FORUMSLIBRARYPODCASTSBLOGSMAGAZINESERVICESNEWSLETTERSNEWSSTOREEVENTS

© CreativeCOW.net All rights are reserved.

[Top]