ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

particle world position link to null

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
cow
jonas espinoza
particle world position link to null
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]




Return to posts index

cow
jonas espinoza
Re: particle world position link to null
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]



Return to posts index

cow
Dan Ebberts
Re: particle world position link to null
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



Return to posts index


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

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



Return to posts index

cow
Dan Ebberts
Re: particle world position link to null
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



Return to posts index

ido shor
Re: particle world position link to null
on Nov 29, 2016 at 9:02:12 am

I know it's an old thread, but still relevant.

it seems the X code you wrote works fine, but the Y doesn't for some reason.
I changed the d[1] as you said, I also changed the first line to match the y.Position also.

no luck, any idea?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]