ginodauri
02-26-2011, 05:56 AM
Hi
Run this code is script editor:
{
int $i=0;
vector $start=<<0,0,0>>;
vector $end=<<10,0,0>>;
vector $tan1=<<10,30,0>>;
vector $tan2=<<10,-30,0>>;
while ($i<=10)
{
float $pointOnCurve[]=`hermite $start $end $tan1 $tan2 ($i*0.1)`;
spaceLocator -p $pointOnCurve[0] $pointOnCurve[1] $pointOnCurve[2];
$i+=1;
}
}
So i want evenly spaced locators along this curve.
I read little about this , and i think what i need to do reparameterization of this curve(based on lenght).
But i don't know where to find info about this.
For example maya don't allow to rebuild bezier curve(this actually like hermite as i understand) so i don't know this is possible or not.
Run this code is script editor:
{
int $i=0;
vector $start=<<0,0,0>>;
vector $end=<<10,0,0>>;
vector $tan1=<<10,30,0>>;
vector $tan2=<<10,-30,0>>;
while ($i<=10)
{
float $pointOnCurve[]=`hermite $start $end $tan1 $tan2 ($i*0.1)`;
spaceLocator -p $pointOnCurve[0] $pointOnCurve[1] $pointOnCurve[2];
$i+=1;
}
}
So i want evenly spaced locators along this curve.
I read little about this , and i think what i need to do reparameterization of this curve(based on lenght).
But i don't know where to find info about this.
For example maya don't allow to rebuild bezier curve(this actually like hermite as i understand) so i don't know this is possible or not.
