THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/05/2005 at 03:57, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.x
Platform: Windows ; Mac ;
Language(s) : C.O.F.F.E.E ;
---------
I'm trying to set the tangents of a point on a spline, like this:
if (!instanceof(spline,PointObject))return;
cnt = spline->GetPointCount();
if (!cnt)return;
p = spline->GetTangents();
if(sizeof(p)<point)return;
p[point*2]=tangent1;
p[point*2+1]=tangent2;
spline->SetTangents(p);
spline->Message(MSG_UPDATE);
spline is the object pointer
point is the point index
tangent1 and tangent2 are vectors.
Why isn't it working?
Thank you in advance for any help.
Rui Batista