This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.api.OpenMaya as om | |
import maya.cmds as cmds | |
TRANSFORM_NODETYPES = ["transform", "joint"] | |
def has_non_default_locked_attributes(node): | |
locked_attributes = [] | |
for attribute in ["translate", "rotate", "scale", "jointOrient"]: | |
default_value = 1 if attribute == "scale" else 0 | |
for axis in "XYZ": |