Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects CC Particle World doesn’t mix well with expressions?

  • CC Particle World doesn’t mix well with expressions?

    Posted by Sameed Khan on June 11, 2015 at 6:30 pm

    Hello everyone, would appreciate if someone helped me out with this frustrating problem.

    I’m trying to link the XY Position coordinates of a Producer to the Position coordinates of a Null Object (a Tracker, which was the target of some motion tracking). However whenever I write the expression to do so (thisComp.layer(“Tracker”).transform.position[0] for Position X (in CC Particle World) thisComp.layer(“Tracker”).transform.position[1] for Position Y (in CC Particle World)) the entire effect disappears — sparks, gridlines, everything.

    I simply want to have the Producer follow this Null Object around the screen, but its pointless if the whole effect disappears from Comp (and Layer) view whenever I try to do so.

    Thanks guys

    John Cuevas replied 11 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • John Cuevas

    June 11, 2015 at 6:53 pm

    Think I found the answer from this thread: https://forums.creativecow.net/thread/2/972523

    And here’s the andrew kramer tutorial: https://www.videocopilot.net/tutorials/3d_stroke_effect/

    cc particle world uses coordinate values based on a ratio of the position to the comp’s width, rather than pixels, so it’s a little goofy to set it up.

    andrew has a tutorial that covers that, it’s the one that creates a 3d stroke effect using particle world. you might want to check that one out.

    basically you need to add this width ratio into your expressions. so you expressions would look something like this…

    position x:
    target = thisComp.layer(“Null 1”); // this would be your layer to track
    (target.position[0]-(thisComp.width/2))/thisComp.width

    position y:
    target = thisComp.layer(“Null 1”); // this would be your layer to track
    (target.position[1]-(thisComp.height/2))/thisComp.width

    position z:
    target = thisComp.layer(“Null 1”); // this would be your layer to track
    target.position[2]/thisComp.width

    Johnny Cuevas, Editor
    Thinkck.com

    “I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
    —THOMAS EDISON on inventing the light bulb.

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