Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions particle world position link to null

  • particle world position link to null

    Posted by Jonas Espinoza on July 24, 2008 at 6:23 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=https://img185.imageshack.us/my.php?image=picture3oe6.png][img=https://img185.imageshack.us/img185/3505/picture3oe6.th.png][/url]

    Ido Shor replied 9 years, 5 months ago 3 Members · 5 Replies
  • 5 Replies
  • Jonas Espinoza

    July 24, 2008 at 6:50 pm

    dang, that link didnt work, lets try this one

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

  • Dan Ebberts

    July 24, 2008 at 9:18 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

  • Jonas Espinoza

    July 24, 2008 at 9:27 pm

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

  • Dan Ebberts

    July 24, 2008 at 9:32 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

  • Ido Shor

    November 29, 2016 at 9:02 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?

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