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

    ModellingCommand, container IDs?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 302 Views
    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 Offline
      Helper
      last edited by

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

      On 19/06/2007 at 14:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Hello.
      I'm trying to call the EditSpline:project function using SendModellingCommand. To do this I need to set a LONG(

      MDATA_SPLINE_PROJECTMODE) 
      
      in the basecontainer of the   ModelingCommandData. How can I figure out which values of MDATA_SPLINE_PROJECTMODE that correspond to which projection mode? The docs only say "see dialog", but I don't see how that helps me?
      
      /Filip 
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 19/06/2007 at 16:44, xxxxxxxx wrote:

        What it should say is "see dialog and then see resources". 🙂

        When there is a set of constant defines they will almost always be listed in either the _api class headers or in the res or modules folder in the Resource folder.

        In this instance, "Projection Mode" is found under the Project command (Structure->Edit Spline->Project).

        And the relevant file is:

        Resource:Modules:Modeling:Res:Description:toolsplineproject.h

        #ifndef _ToolSplineProject_H_  
        #define _ToolSplineProject_H_  
          
        enum  
        {  
             MDATA_SPLINE_PROJECT_MODE                                        = 2022, // LONG  
                  MDATA_SPLINE_PROJECT_MODE_VIEW        = 0,  
                  MDATA_SPLINE_PROJECT_MODE_XY           = 1,  
                  MDATA_SPLINE_PROJECT_MODE_ZY           = 2,  
                  MDATA_SPLINE_PROJECT_MODE_XZ           = 3,  
                  MDATA_SPLINE_PROJECT_MODE_X_AXIS       = 4,  
                  MDATA_SPLINE_PROJECT_MODE_Y_AXIS       = 5,  
                  MDATA_SPLINE_PROJECT_MODE_Z_AXIS       = 6,  
                  MDATA_SPLINE_PROJECT_MODE_SPHERICAL    = 7,  
          
             MDATA_SPLINE_PROJECT  
        };  
          
        #endif // ToolSplineProject
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

          On 20/06/2007 at 01:02, xxxxxxxx wrote:

          That's exactly what I needed. Thanks a lot!

          /Filip

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