QuiltiX Plugins 0.0.1
Custom Plugins for QuiltiX
|
glTF serializer for MaterialX More...
Public Member Functions | |
None | __init__ (self, editor, root) |
Initialize the plugin. | |
custom_on_view_menu_about_to_show (self) | |
Custom about to show event for the view menu. | |
None | on_gltf_viewer_toggled (self, checked) |
Toggle the glTF viewer dock widget. | |
None | setup_gltf_viewer_doc (self) |
Set up the glTF viewer dock widget. | |
None | show_text_box (self, text, title="") |
Core utilities. | |
None | import_gltf_triggered (self) |
Import a glTF file into the current graph. | |
dict | setup_default_export_options (self, path, bakeFileName, bakeResolution=1024, embed_geometry=False) |
Set up the default export options for gltf output. | |
create_baked_path (self, path) | |
Create a baked path name from an original path. | |
None | export_gltf_triggered (self, writeToTemp=False) |
Export the current graph to a glTF file in binary format (glb) | |
str | convert_graph_to_gltf (self, options) |
Convert the current graph to a glTF document string. | |
show_gltf_text_triggered (self) | |
Show the current graph as glTF text popup. | |
Public Attributes | |
editor = editor | |
root = root | |
import_gltf_triggered | |
show_gltf_text_triggered | |
bake_textures_option = QAction("Always Bake Textures", editor) | |
act_gltf_viewer = QAction("glTF Viewer", editor) | |
Add viewer toggle. | |
on_gltf_viewer_toggled | |
custom_on_view_menu_about_to_show | |
web_dock_widget = glTFWidget(self.editor) | |
glTF serializer for MaterialX
Definition at line 211 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.__init__ | ( | self, | |
editor, | |||
root ) |
Initialize the plugin.
Adds in:
editor | The QuiltiX editor |
root | The root path of QuitiX |
Definition at line 216 of file materialxgltf/plugin.py.
str plugin.QuiltiX_glTF_serializer.convert_graph_to_gltf | ( | self, | |
options ) |
Convert the current graph to a glTF document string.
Will perform:
options | (dict): Dictionary of options for the conversion |
Definition at line 504 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.create_baked_path | ( | self, | |
path ) |
Create a baked path name from an original path.
path | (str): The original path |
Definition at line 426 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.custom_on_view_menu_about_to_show | ( | self | ) |
Custom about to show event for the view menu.
Updates the glTF viewer toggle.
Definition at line 286 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.export_gltf_triggered | ( | self, | |
writeToTemp = False ) |
Export the current graph to a glTF file in binary format (glb)
writeToTemp | (bool): Whether to write to a temporary file |
Definition at line 439 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.import_gltf_triggered | ( | self | ) |
Import a glTF file into the current graph.
Definition at line 327 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.on_gltf_viewer_toggled | ( | self, | |
checked ) |
Toggle the glTF viewer dock widget.
Definition at line 293 of file materialxgltf/plugin.py.
dict plugin.QuiltiX_glTF_serializer.setup_default_export_options | ( | self, | |
path, | |||
bakeFileName, | |||
bakeResolution = 1024, | |||
embed_geometry = False ) |
Set up the default export options for gltf output.
path | (str): path to the gltf file |
bakeFileName | (str): path to the baked file |
bakeResolution | (int): resolution of the baked textures. Default is 1024. |
embed_geometry | (bool): whether to embed the geometry in the gltf file. Default is False. |
Definition at line 383 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.setup_gltf_viewer_doc | ( | self | ) |
Set up the glTF viewer dock widget.
Definition at line 299 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.show_gltf_text_triggered | ( | self | ) |
Show the current graph as glTF text popup.
Definition at line 567 of file materialxgltf/plugin.py.
None plugin.QuiltiX_glTF_serializer.show_text_box | ( | self, | |
text, | |||
title = "" ) |
Core utilities.
Show a text box with the given text.
text | The text to show |
title | The title of the text box. Default is empty string. |
Definition at line 307 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.act_gltf_viewer = QAction("glTF Viewer", editor) |
Add viewer toggle.
Definition at line 277 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.bake_textures_option = QAction("Always Bake Textures", editor) |
Definition at line 261 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.custom_on_view_menu_about_to_show |
Definition at line 284 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.editor = editor |
Definition at line 226 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.import_gltf_triggered |
Definition at line 238 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.on_gltf_viewer_toggled |
Definition at line 279 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.root = root |
Definition at line 227 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.show_gltf_text_triggered |
Definition at line 253 of file materialxgltf/plugin.py.
plugin.QuiltiX_glTF_serializer.web_dock_widget = glTFWidget(self.editor) |
Definition at line 303 of file materialxgltf/plugin.py.