Skip to content

tools

get_look_assigner_tool(parent)

Create, cache and return look assigner tool window.

Source code in client/ayon_maya/tools/__init__.py
 8
 9
10
11
12
13
14
def get_look_assigner_tool(parent):
    """Create, cache and return look assigner tool window."""
    if MayaToolsSingleton._look_assigner is None:
        from .mayalookassigner import MayaLookAssignerWindow
        mayalookassigner_window = MayaLookAssignerWindow(parent)
        MayaToolsSingleton._look_assigner = mayalookassigner_window
    return MayaToolsSingleton._look_assigner

show_look_assigner(parent=None)

Look manager is Maya specific tool for look management.

Source code in client/ayon_maya/tools/__init__.py
17
18
19
20
21
22
23
24
25
26
27
def show_look_assigner(parent=None):
    """Look manager is Maya specific tool for look management."""

    with qt_app_context():
        look_assigner_tool = get_look_assigner_tool(parent)
        look_assigner_tool.show()

        # Pull window to the front.
        look_assigner_tool.raise_()
        look_assigner_tool.activateWindow()
        look_assigner_tool.showNormal()