Skip to content

Instantly share code, notes, and snippets.

@gregtemp
Created June 4, 2014 20:31
Show Gist options
  • Save gregtemp/f8e79aa59cd8603819b5 to your computer and use it in GitHub Desktop.
Save gregtemp/f8e79aa59cd8603819b5 to your computer and use it in GitHub Desktop.
// First auto generated objects script
int $xlimit = 10;
int $zlimit = 10;
int $boidAmount = 50;
string $name;
for ($i = 0; $i < $boidAmount; $i++) {
polyCone -name coneBoid -radius 0.2;
if ($i>0) {
string $nameNum1 = $i;
$name = ("coneBoid" + $nameNum1);
}
else {
$name = "coneBoid";
}
$randy = rand(- $xlimit, $xlimit);
$randy2 = rand(- $zlimit, $zlimit);
rotate 90 0 0 $name;
move $randy 0 $randy2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment