-
Crowd replication
I am attempting to create a crowd within a stadium and wish to use some expressions to simplify the process. I stumbled accross this one
minX =thisComp.layer(“Sliders”).effect(“X Min Slider”)(“Slider”);//Minimum x value
maxX =thisComp.layer(“Sliders”).effect(“X Max Slider “)(“Slider”);//Maximum x valueminY =thisComp.layer(“Sliders”).effect(“Y Min Slider “)(“Slider”);//Minimum y value
maxY =thisComp.layer(“Sliders”).effect(“Y Max Slider “)(“Slider”);//Maximum y valueminZ = thisComp.layer(“Sliders”).effect(“Z Min Slider “)(“Slider”);//Minimum z depth value
maxZ = thisComp.layer(“Sliders”).effect(“Z Max Slider “)(“Slider”);//Maximum z depth valueseedRandom(index, true);
x = random(minX, maxX);
y= random(minY, maxY);
z = random(minZ, maxZ);[Math.round(x), Math.round(y), Math.round( z )]
which links the 3d layer to sliders, but does so randomly. I wish to have more deliberate control over the layers however.
I have locators imported from maya to assist with the initial placement of key crowd elements, but would like an easier way to fill in the gaps, by simply duplicating the crowds at the locators, and using a slider to move them along till the fill the rows. Is this possible?
Thanks
Dave