THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2005 at 17:02, xxxxxxxx wrote:
Cinema 4D Version: 9.102
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
A problem that makes me go round in circles.
To get an even movement on a regular spline I use "UniformTonatural" option.
It works fine like this:
<CODE>var type1 = OBJ1->GetType();
// Is Spline
if ( type1 == 5101)
println("OBJ1 Is Spline");
var spos1 = OBJ1->GetSplinePoint(OBJ1->UniformTonatural(POS1) , 0);
I can not for the life of me get the same thing to happen when using a PrimitiveSpline,
like Rectangle, Cogwheel etc.
The same principle as with a regular spline doesn't seem to apply. I got it working with the default function, that is, it moves slow in the corners and fast on straighter parts.
Like this(InitLength and FreeLength are commented here).
<CODE>/// Is Primitive Spline
if ((type1>5174 && type1<5190))
println("OBJ1 Is PrimitiveSpline");
var spos1 = OBJ1->GetSplineObject()->GetSplinePoint(POS1 ,0); // <<How to implement UniformTonatural here??
I've tried all possible settings and combination based on the previous example I can think of, but no go....
Any input is most welcome.
PS UniformTonatural doesn't get spelled correctly when posting it.
It is spelled correct in my code with a big "N". DS