ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

CC Particle World doesn't mix well with expressions?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sameed KhanCC Particle World doesn't mix well with expressions?
by on Jun 11, 2015 at 6:30:05 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


Return to posts index

John CuevasRe: CC Particle World doesn't mix well with expressions?
by on Jun 11, 2015 at 6:53:12 pm

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

And here's the andrew kramer tutorial: http://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.


Return to posts index

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