maya.export#

Maya cache export classes and functions.

Classes:

ExportWidget([parent])

The widget used to start an export process.

SetsComboBox([parent])

Export set picker.

TypeComboBox([parent])

Export type picker.

VersionsComboBox([parent])

Version number picker.

Functions:

close()

Close ExportWidget.

show()

Shows ExportWidget.

Data:

PRESETS

Maya cache export presets

SECTIONS

UI layout definition

class bookmarks.maya.export.ExportWidget(parent=None)[source]#

Bases: BasePropertyEditor

The widget used to start an export process.

Methods:

check_version(*args, **kwargs)

Verify export item version.

db_source()

A file path to use as the source of database values.

export_alembic(destination, outliner_set, ...)

Main alembic export function.

export_ass(destination, outliner_set, ...[, ...])

Main Arnold ASS export function.

export_maya(destination, outliner_set, ...)

Main Maya scene export function.

export_obj(destination, outliner_set, ...[, ...])

Main obj export function.

init_data()

Initializes data.

init_progress_bar()

Initializes the export progress bar.

keyPressEvent(event)

Key press event handler.

save_changes()

Saves changes.

sizeHint()

Returns a size hint.

check_version(*args, **kwargs)[source]#

Verify export item version.

db_source()[source]#

A file path to use as the source of database values.

Returns

The database source file.

Return type

str

export_alembic(destination, outliner_set, start_frame, end_frame, step=1.0)[source]#

Main alembic export function.

Only shapes, normals and uvs are exported by this implementation. The list of shapes contained in the outliner_set will be rebuilt in the root of the scene to avoid parenting issues.

Parameters
  • start_frame (int) – Start frame.

  • end_frame (int) – End frame.

  • destination (str) – Path to the output file.

  • outliner_set (tuple) – A list of transforms contained in a geometry set.

  • step (int, float) – Frame step.

export_ass(destination, outliner_set, start_frame, end_frame, step=1.0)[source]#

Main Arnold ASS export function.

Parameters
  • start_frame (int) – Start frame.

  • end_frame (int) – End frame.

  • destination (str) – Path to the output file.

  • outliner_set (tuple) – A list of transforms contained in a geometry set.

  • step (float, int) – Frame step.

export_maya(destination, outliner_set, start_frame, end_frame, step=1.0)[source]#

Main Maya scene export function.

Parameters
  • start_frame (int) – Start frame.

  • end_frame (int) – End frame.

  • destination (str) – Path to the output file.

  • outliner_set (tuple) – A list of transforms contained in a geometry set.

  • step (float) – Frame step.

export_obj(destination, outliner_set, start_frame, end_frame, step=1.0)[source]#

Main obj export function.

Parameters
  • start_frame (int) – Start frame.

  • end_frame (int) – End frame.

  • destination (str) – Path to the output file.

  • outliner_set (tuple) – A list of transforms contained in a geometry set.

  • step (float, int) – Frame step.

init_data()[source]#

Initializes data.

init_progress_bar()[source]#

Initializes the export progress bar.

keyPressEvent(event)[source]#

Key press event handler.

save_changes()[source]#

Saves changes.

sizeHint()[source]#

Returns a size hint.

class bookmarks.maya.export.SetsComboBox(parent=None)[source]#

Bases: QComboBox

Export set picker.

Methods:

init_data()

Initializes data.

init_data()[source]#

Initializes data.

class bookmarks.maya.export.TypeComboBox(parent=None)[source]#

Bases: QComboBox

Export type picker.

Methods:

init_data()

Initializes data.

init_data()[source]#

Initializes data.

class bookmarks.maya.export.VersionsComboBox(parent=None)[source]#

Bases: QComboBox

Version number picker.

Methods:

init_data()

Initializes data.

init_data()[source]#

Initializes data.

bookmarks.maya.export.close()[source]#

Close ExportWidget.

bookmarks.maya.export.show()[source]#

Shows ExportWidget.

bookmarks.maya.export.PRESETS = {'alembic': {'action': 'export_alembic', 'extension': 'abc', 'name': 'Alembic', 'ogs_pause': True, 'plugins': ('AbcExport.mll', 'matrixNodes.mll')}, 'ass': {'action': 'export_ass', 'extension': 'ass', 'name': 'Arnold ASS', 'ogs_pause': True, 'plugins': ('mtoa.mll',)}, 'ma': {'action': 'export_maya', 'extension': 'ma', 'name': 'Maya Scene', 'ogs_pause': False, 'plugins': ()}, 'obj': {'action': 'export_obj', 'extension': 'obj', 'name': 'OBJ', 'ogs_pause': True, 'plugins': ('objExport.mll',)}}#

Maya cache export presets

bookmarks.maya.export.SECTIONS = {0: {'color': PySide2.QtGui.QColor.fromRgbF(0.254902, 0.254902, 0.254902, 1.000000), 'groups': {0: {0: {'description': 'Select the set to export.', 'help': 'Select the set to export. If your set is not listed above make sure its name ends with <span style="color:white">"_export"</span>, otherwise it won\'t be listed.', 'key': 'maya_export/set', 'name': 'Select Set', 'placeholder': None, 'validator': None, 'widget': <class 'bookmarks.maya.export.SetsComboBox'>}}, 1: {0: {'description': 'Select the export format.', 'key': 'maya_export/type', 'name': 'Export Type', 'placeholder': None, 'validator': None, 'widget': <class 'bookmarks.maya.export.TypeComboBox'>}, 1: {'description': 'Tick if you want to export the whole timeline, or just the current frame.', 'key': 'maya_export/timeline', 'name': 'Timeline', 'placeholder': 'Tick if you want to export the whole timeline, or just the current frame.', 'validator': None, 'widget': functools.partial(<class 'PySide2.QtWidgets.QCheckBox'>, 'Export Timeline')}}, 2: {0: {'description': 'Select export version.', 'help': 'Versioned exports have an additional <span style="color:white">"_v001"</span> prepended to their name that will be incremented every subsequent re-export.', 'key': None, 'name': 'Version', 'placeholder': None, 'validator': None, 'widget': <class 'bookmarks.maya.export.VersionsComboBox'>}}, 3: {0: {'description': 'Reveal after export', 'key': 'maya_export/reveal', 'name': 'Reveal', 'placeholder': None, 'validator': None, 'widget': functools.partial(<class 'PySide2.QtWidgets.QCheckBox'>, 'Reveal after export')}, 1: {'description': 'Keep the window open after export', 'key': 'maya_export/keep_open', 'name': 'Keep Open', 'placeholder': None, 'validator': None, 'widget': functools.partial(<class 'PySide2.QtWidgets.QCheckBox'>, 'Keep window open')}}}, 'icon': '', 'name': 'Export'}}#

UI layout definition