Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    wrong values

    SDK Help
    0
    2
    247
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post