How to access an included Oprimitiveaxis



  • 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



  • 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



  • 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



  • 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


Log in to reply