For a certain task I kept moving the whole body of a
character by selecting the hips effector, unpinning the
children, translating the hips and turning off the unpin
button.
When I tried to write a script to do this for me I
realized that I don’t know how to do the unpinning.
The documentation only covers getting the actual state
of pinning.
you know about the temporary unpin button/ Q hotkey, then you don’t have to unpin anything
But there is python access to the pin settings and if I am not mistaken you can use the same command to set the pin state as you can to get the state, just set it instead of reading it. Just guessing though, I have to find the script as I can’t remember.
so you want to know my unpin key hack? in full body mode, unpin hot key, but key body parts, keeps the feet locked once the time updates, but lets me key the upper body and leaving my pin sets the same but move the character and I can control what stays put.
Also just sent you an email with the get/set pin scripts, might help you out with what you were trying to do.
lRig = FBApplication().CurrentCharacter.Components[0]
lPins = {} #dictionnary of Pins
for each in lRig.PropertyList:
if each.GetName().find("TPin") != -1 or each.GetName().find("RPin") != -1:
lPins[each.GetName()] = each.Data