Skip to content

fxdcc

Utility functions related to DCC packages.

get_dcc_main_window

get_dcc_main_window() -> Optional[Any]

Import the current DCC main window.

Returns:

Type Description
Optional[Any]

Optional[Any]: The return value of the first successful function call, or None if no calls are successful.

Notes

This function is DCC agnostic and will return the main window based on the success of the DCC module import.

get_houdini_main_window

get_houdini_main_window() -> QWidget

Get the Houdini main window.

Returns:

Type Description
QWidget

qtpy.QtWidgets.QWidget: QWidget Houdini main window.

get_houdini_stylesheet

get_houdini_stylesheet() -> str

Get the Houdini stylesheet.

Returns:

Name Type Description
str str

The Houdini stylesheet.

get_maya_main_window

get_maya_main_window() -> QWidget

Get the Maya main window.

Returns:

Type Description
QWidget

qtpy.QtWidgets.QWidget: TmainWindow Maya main window.

get_nuke_main_window

get_nuke_main_window() -> QMainWindow

Get the Nuke main window.

Returns:

Type Description
QMainWindow

qtpy.QtWidgets.QMainWindow: DockMainWindow Nuke main window.