11Feb/12Off
Resize Pose Action
I needed to resize some pose actions due to a rescale on a rig so I needed to write a script to do so. I didn't need to rescale the scale parameters thus why they are not in the list of params to scale.
1 2 3 4 5 6 7 8 9 10 11 12 13 | xsi = Application log = xsi.LogMessage collSel = xsi.Selection def resizeAction(action): collActionItems = action.SourceItems for eachItem in collActionItems: if eachItem.Name.rsplit(".")[-1] in ["posx","posy","posz","rotx","roty","rotx"]: eachItem.Source.Value = eachItem.Source.Value * 0.3222 resizeAction(collSel(0)) |