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];
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter