I am not a newbie. But right now I feel like one.
FOR THE LIFE OF ME… I can’t figure out how to “Lock” a constraint or “Zero” it with python.
Anyone?
I am not a newbie. But right now I feel like one.
FOR THE LIFE OF ME… I can’t figure out how to “Lock” a constraint or “Zero” it with python.
Anyone?
Hi DangerAhead,
U can control “Lock” from the property list of your contstraint. For example
lConstraint = FBConstraintManager().ConstraintGet(0)
for lProp in lConstraint.PropertyList: print lProp.GetName()
about “Zero”, I suppose U need to make this operation by your self (put source object into the destination, then switch on active&lock property of the constraint)
this works:
const1LockAttrName = 'Lock'
const1LockSettings = constraintName.PropertyList.Find(const1LockAttrName)
const1LockSettings.Data = True
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.