View Single Post
# 8 17-10-2006 , 11:37 AM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
A little investigation and scripting is your friend:

Draw your curve and change the string value in my script to the same as your curve name:

then run this:

int $numb = 100;
float $i = 0.0;
//change this to your curve name
string $crv = "curve1";
//make sure your curve is rebuilt to be between 0 and 1
rebuildCurve -ch 1 -rpo 1 -rt 0 -end 1 -kr 0 -kcp 0 -kep 1 -kt 1 -s 20 -d 3 -tol 0 $crv;


for($i; $i <= $numb; $i++)
{
float $inc = (1.0/$numb) * $i;
float $pos[] = `pointOnCurve -pr $inc $crv`;
sphere;
xform -ws -t $pos[0] $pos[1] $pos[2];
}

user added image
A


Technical Director - Framestore

Currently working on: Your Highness

IMDB