I have an additional question to this topic if you guys donĀ“t mind.
I have 8 objects and I want to randomly duplicate and place them at every vertex' position of this base object. what I came up with is
string $obj = "body";
string $dupes = "dupes";
int $numbVerts[] = `polyEvaluate -v $obj`;
int $i = 0;
for($i; $i < $numbVerts[0]; $i++)
{
float $pos[] = `xform -q -ws -t ($obj + ".vtx["+$i+"]")`;
duplicate -rr $dupes;
setAttr "dupes.translateX" $pos[0];
setAttr "dupes.translateY" $pos[1];
setAttr "dupes.translateZ" $pos[2];
}
this is working for one duplicated object (dupes). but how would I take 8 objects and integrate the randomly duplicated versions of them into this script?
tia
falott
everything starts and ends in the right place at the right time.