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)?
-Pim
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)?
-Pim
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
c4d.EventAdd()
Best wishes
Martin
On 11/12/2014 at 08:55, xxxxxxxx wrote:
Hello,
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,
Sebastian