-
Random Layer distribution in 3D space
Hi
I’m new into this great forum and my first question is about expressions (sorry for my bad english but I’m from switzerland).
I have about 50 layers that i would randomly distribute in 3D space.
For that i have created a null object (called “Center”) and then added the following expression to the layers:xVal = thisComp.layer(“Center”).transform.position[0]+random(-10000, 10000);
yVal = thisComp.layer(“Center”).transform.position[1]+random(-10000, 10000);
zVal = thisComp.layer(“Center”).transform.position[2]+random(-10000, 10000);
[xVal,yVal,zVal]Basically, it does what I want but only for the first frame. Because of the random command, it calculates a new position at every frame and that’s not what i need. The main goal is, that I don’t need to position 50 layers manually. The layers won’t be animated, they sould only be distributed do a random position.
I hope anyone out there understands what I mean and can give me a hint. Thank you very much.
Regards,
Pascal