Ejemplo n.º 1
0
def getTransformControl(node):
    # type: (MaxPlus.INode) -> MaxPlus.Control
    """
    Get the Transform Control of the specified Node
    :param node: Node to query
    :return: Transform Control
    """
    for i in range(node.GetNumSubAnims()):
        subAnim = node.GetSubAnim(i)
        if str(subAnim) == "Animatable(Position/Rotation/Scale)":
            genericController = MaxPlus.Control__CastFrom(subAnim)
            return genericController
Ejemplo n.º 2
0
def GetTransformControl(node):
    for i in range(node.GetNumSubAnims()):
        subAnim = node.GetSubAnim(i)
        if str(subAnim) == "Animatable(Position/Rotation/Scale)":
            genericController = MaxPlus.Control__CastFrom(subAnim)
            return genericController