Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    How to get Modeling Axis? [SOLVED]

    SDK Help
    0
    4
    456
    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

      On 18/06/2015 at 11:14, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R16 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      How should I get the Modeling Axis?
      I thought it would be as simple as this:
      Matrix modelingAxis = GetModelingAxis(doc);
      But then I get the issue: Use of undeclared identifier 'GetModelingAxis'

      I've searched the SDK examples and the forum, but couldn't find anything with GetModelingAxis.

      Thanks in advance for your help and time!
      With kind regards,
      Casimir Smets

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

        On 18/06/2015 at 11:27, xxxxxxxx wrote:

        GetModelingAxis is a member function of the BaseObject class so I think you need to do like this:

          
        BaseObject *myObject = doc->GetActiveObject();   
        Matrix modelingAxis = myObject->GetModelingAxis(doc);   
        

        Cheers
        Bonsak

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

          On 19/06/2015 at 05:48, xxxxxxxx wrote:

          Hi Bonsak,

          That was what I was looking for, thanks for your answer!

          Greetings,
          Casimir Smets

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

            On 19/06/2015 at 06:59, xxxxxxxx wrote:

            Just to have everything in one place:
            Here's the documentation of GetModelingAxis().

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