Difference between revisions of "RandomMoveArrayOfObjectsinXY"
From scripting
(Created page with " global proc RandomMoveArrayOfObjectsinXY(string $NameList[], float $MaxVal) { //Author Nick Pisca 0001d 2009 for ($x=0;$x<size($NameList);$x++) { if (`objExists...") |
(No difference)
|
Latest revision as of 19:50, 24 April 2017
global proc RandomMoveArrayOfObjectsinXY(string $NameList[], float $MaxVal) { //Author Nick Pisca 0001d 2009 for ($x=0;$x<size($NameList);$x++) { if (`objExists $NameList[$x]`) { float $RandX = rand(-$MaxVal, $MaxVal); float $RandY = rand(-$MaxVal, $MaxVal); move -r $RandX $RandY 0 $NameList[$x]; } } }
More information on translate transformations, read pages 55-67 in YSYT.
See also RandomMoveArrayOfObjects.