wrong values

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/11/2003 at 14:12, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   7.3 
Platform:    Mac  ;  
Language(s) :   C.O.F.F.E.E  ;

---------
hello,

i've got a problem with the following script:

for (i=0; i<myTextLength; i++)
{
    myRotation=fGetAngle(i);
    println("myRotation: ", int(myRotation));
    myCtrl->SetRotation(vector(0,int(myRotation),0));
    doc->Message(MSG_UPDATE);
    myCtrl=myCtrl->GetNext();    
   
}

the values coming from myRotation are what they should be. but the values arriving at the object are completely different (for example: myRotation=50 ---> y-rotation of myCtrl (null-object)= 2864.789 °   ??????). what's up?? the objects are not scaled nor manipulated in any other way.

HELP!

alex

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/11/2003 at 07:35, xxxxxxxx wrote:

Rotations are specified in radians, not in degrees. Use the Radians() function to convert degrees to radians.