xForm Geometry example by Asher Wadsworth

PHOTO EMBED

Wed Jun 26 2024 23:57:53 GMT+0000 (Coordinated Universal Time)

Saved by @nouhad #mel

global proc cubeGenerator ()
{
    int $randNum = rand(5);
    print ($randNum+"\n");

    for($i = 0; $i < 10; $i++) 
    {
        string $cubeName[] = `polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1 -n "cube"`;
        float $randScale[] = abs(sphrand(5));
        xform -s $randScale[0] $randScale[1] $randScale[2] $cubeName[0];
    }
    
}
content_copyCOPY