fxdcc
fxdcc
¶
DCC (Digital Content Creation) utility functions for fxgui.
This module provides utility functions for integrating fxgui with various DCC applications including Houdini, Maya, and Nuke. It handles the detection of the current DCC environment and provides access to their main windows and stylesheets.
Constants
STANDALONE: Constant indicating standalone Python mode. HOUDINI: Constant indicating Houdini environment. MAYA: Constant indicating Maya environment. NUKE: Constant indicating Nuke environment.
Functions:
| Name | Description |
|---|---|
get_dcc_main_window |
Auto-detect and return the current DCC main window. |
get_houdini_main_window |
Get the Houdini main window. |
get_houdini_stylesheet |
Get the Houdini stylesheet. |
get_maya_main_window |
Get the Maya main window. |
get_nuke_main_window |
Get the Nuke main window. |
Examples:
Getting the DCC main window automatically:
>>> from fxgui import fxdcc
>>> main_window = fxdcc.get_dcc_main_window()
>>> if main_window is not None:
... my_dialog = MyDialog(parent=main_window)
... my_dialog.show()
Explicitly getting a specific DCC window:
Functions¶
get_dcc_main_window
¶
get_houdini_main_window
¶
Get the Houdini main window.
Returns:
| Type | Description |
|---|---|
QWidget
|
qtpy.QtWidgets.QWidget: |