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

    How to access an included Oprimitiveaxis

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 432 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 17/07/2012 at 03:47, xxxxxxxx wrote:

      Hi everybody,

      I stucked again... After trying to initialize the Oprimitiveaxis-object I'm using for align-purposes, I realizied not to have any idea on which way I can address this object.

      It's included in the .res-file (simply INCLUDE Oprimitivaxis;) but because it got now name I can't assign an id in the .h-file. And so I have no chance to call it in the pyp-file.

      After trying to iterate through tag.GetDataInstance() I got different id's. All from my own datafields, but there is an new id within the result. 3000. Is this the id for Oprimitiveaxis and where can I find such informations?

      By the way: why is every element listed with the corresponding id but not my button when iterating through tag.GetDataInstance()?

      Here the h.file:

        
      #ifndef _align_H_  
      #define _align_H_  
        
      enum  
      {  
        BS_ALIGN_SPLINE                  = 1000,  
        BS_ALIGN_TANGENT               = 1001,  
        BS_ALIGN_POSITION              = 1002,  
        BS_ALIGN_SEGMENT               = 1003,  
        BS_ALIGN_KEY                        = 1004  
      };  
        
      #endif  
      

      And here the res-file:

        
      CONTAINER align  
      {  
        NAME align;  
        INCLUDE Obase;  
        
        GROUP ID_OBJECTPROPERTIES  
        {  
            GROUP  
            {  
                LINK BS_ALIGN_SPLINE                    { ANIM OFF; }  
                BOOL BS_ALIGN_TANGENT               {}  
                REAL BS_ALIGN_POSITION               { UNIT PERCENT; MIN 0.0; MAX 100.0; STEP 0.01; CUSTOMGUI REALSLIDER; }  
                LONG BS_ALIGN_SEGMENT               { MIN 0; }  
                BUTTON BS_ALIGN_KEY                    { NAME AOM_BUTTON1; ALIGN_LEFT; SCALE_H; }  
            }  
        }  
          
        INCLUDE Oprimitiveaxis;  
      }  
      

      cheers,
      Sven

      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 17/07/2012 at 05:04, xxxxxxxx wrote:

        Ok, it's more easy than I thought.

        I forgot that these elements come from the C++ SDK and that they have their corresponding files in this SDK.

        After searching für it I got it: ID 3000.
        And the directions are listed there also. 0 to 5.

        Live can be so easy - sometimes. 😉

        Cheers,
        Sven

        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 17/07/2012 at 09:14, xxxxxxxx wrote:

          Hello blutsvente,

          just access the ID's via the c4d module.

          import c4d  
          print c4d.PRIM_AXIS_XP
          

          -Nik

          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 17/07/2012 at 22:40, xxxxxxxx wrote:

            Hi Niklas,

            thank you for this hint. That's also a nice way to get some ID's. 🙂

            Sven

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