Copy link to clipboard
Copied
Hey y'all,
Im trying to link CC particle world to a null object to make some light streaks in a video. I want it to be 3D so I can push it back in 3D space. I motion tracked and assigned it to a null object like usual, and the pick whipped the x and y to the null. I then used this expression to make it 'translate' to cc particle world. But its still off. Here is the expression I used for the x, and it almost works
c=thisComp.layer("New Null").transform.position[0]-thisComp.width/2;
c/thisComp.width
and y
c=thisComp.layer("New Null").transform.position[1]-thisComp.height/2;
c/thisComp.width
Any guidance would be much appreciated!
Copy link to clipboard
Copied
Particle World coordinates are in relative ranges from 0 to 1, not actual pixel units. You need to sneak in some linear(posX,0,comp.width,-1,1) or similar in there....
Mylenium