How to get Modeling Axis? [SOLVED]



  • 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



  • 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



  • 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



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

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


Log in to reply