-
What does this expression do?
This expression, from YT “Create Particles Along A Path”, makes a CC Particle world emitter follow the keyframes of a Null Layer:
target = thisComp.layer(“Null”);
(target.positions[0]-(thisComp.width/2))/thisComp.widthWhat’s all that jazz in the 2nd line about? I can’t parse it: does it have something to do with CC Particle emitters being registered at the center of the comp instead of the upper left? (I think I’m close, but I don’t get it….)
Thnx for any enlightenment.