Setting Align in Constraint Tag [SOLVED]

  • On 11/12/2014 at 08:16, xxxxxxxx wrote:

    I have an object with a Constraint Tag.
    Now I want set Clamp - Align = +Z

    If I look in the console what to set I get: Constraint[50004,3]
    How to set this value using Python (container)?


  • On 11/12/2014 at 08:40, xxxxxxxx wrote:

    Hi Pim,
    you know how to ensure you get the right tag and object and so on.
    That´s why here is only the short form:

    contag =  op.GetTag(1019364)  
    contag[c4d.ID_CA_CONSTRAINT_TAG_CLAMP] = True  
    contag[50004,3] = 5  

    Best wishes

  • On 11/12/2014 at 08:55, xxxxxxxx wrote:


    as always I suggest to use the proper constants, in this case c4d.ID_CA_CONSTRAINT_TAG_AXIS_ZP .

    Be aware that a constraint tag could have multiple clamp targets. To get the count of the targets simply access ID_CA_CONSTRAINT_TAG_CLAMP_TARGET_COUNT.

    Best wishes,

  • On 11/12/2014 at 23:57, xxxxxxxx wrote:

    Reading my question again, I realized I should have know this myself.
    After all Cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Y] is about the same.
    I guess mixing c++ and python, mixes up my brain.


Log in to reply