[Motionbuilder] create and delete aux effector on selected body effector


#1

Hi

I’m having an hard time understanding how to create an aux effector on a selected effector (for example a wrist).
I’ve had a look on the documentation and I think that the general way to do it would be to find the wrist slot and assign a FBEffectorSetAux1

The only problem is that whatever I tried didn’t work at all so I’m probably doing all in the wrong way.

Could anyone help me?

Thanks


#2

nevermind I found it :slight_smile:

lChar = FBApplication().CurrentCharacter
auxEffector = lChar.CreateAuxiliary(FBEffectorId.kFBLeftWristEffectorId, False)


#3

[QUOTE=XATMO;23727]nevermind I found it :slight_smile:

lChar = FBApplication().CurrentCharacter
auxEffector = lChar.CreateAuxiliary(FBEffectorId.kFBLeftWristEffectorId, False)[/QUOTE]

That came in very handy, thanks for sharing!