artellapipe.core.shadersviewer module¶
Module that contains widget implementation for shaders viewer
-
class
artellapipe.core.shadersviewer.ShaderViewer(project, grid_size=4, parent=None)¶ Bases:
PySide2.QtWidgets.QGridLayout,object-
SHADER_VIEWER_WIDGET_CLASS¶ alias of
ShaderViewerWidget
-
add_shader(widget)¶ Adds a new shader widget into the viewer :param widget: QWidget
-
clear()¶ Clears all shader widgets from the viewer
-
load_shader(shader_name)¶ Loads given shader name in current DCC :param shader_name: str
-
refresh()¶ Refresh shaders data
-
staticMetaObject= <PySide2.QtCore.QMetaObject object>¶
-
-
class
artellapipe.core.shadersviewer.ShaderViewerWidget(project, shader_name, parent=None)¶ Bases:
tpQtLib.core.base.BaseWidget,object-
clicked= <PySide2.QtCore.Signal object>¶
-
contextMenuEvent(self, event:PySide2.QtGui.QContextMenuEvent)¶
-
get_main_layout()¶ Function that generates the main layout used by the widget Override if necessary on new widgets :return: QLayout
-
get_shader_path()¶ Returns path of the shader :return: str
-
open_shader_in_editor()¶
-
setup_signals()¶ Function that set up signals of the widget
-
staticMetaObject= <PySide2.QtCore.QMetaObject object>¶
-
ui()¶ Function that sets up the ui of the widget Override it on new widgets (but always call super)
-