public static void ClearTransform(MFnTransform targetTransform, bool clearPos = true, bool clearPivotRot = true, bool clearPivotScale = true) { if (clearPos) { targetTransform.setTranslation(MVector.zero, MSpace.Space.kObject); } if (clearPivotRot) { targetTransform.setRotatePivotTranslation(MVector.zero, MSpace.Space.kObject); } if (clearPivotScale) { targetTransform.setScalePivotTranslation(MVector.one, MSpace.Space.kObject); } }