openpypeline.app.maya.file package

Submodules

openpypeline.app.maya.file.file module

File: file.py Description: Maya-specific file handling operations for openPypeline Studio.

This module is dynamically loaded by opsEngine when Maya is detected.

openpypeline.app.maya.file.file.open(filepath)[source]

Opens a Maya scene file (.ma, .mb) or supported container given the filepath.

openpypeline.app.maya.file.file.save()[source]

Saves the current Maya scene.

openpypeline.app.maya.file.file.import_file(filepath)[source]

Imports a file into the current Maya scene.

openpypeline.app.maya.file.file.reference_file(filepath)[source]

References a file into the current Maya scene.

openpypeline.app.maya.file.file.new_file()[source]

Creates a new empty scene.

openpypeline.app.maya.file.file.save_as(filepath, file_type=None)[source]

Renames and saves the current scene.

openpypeline.app.maya.file.file.export_file(filepath, file_type=None, selected=False)[source]

Exports the current scene or selection to a file.

openpypeline.app.maya.file.file.flatten_references(master_name, workshop_name)[source]

Flattens the scene by importing all referenced files.

openpypeline.app.maya.file.file.delete_display_layers()[source]

Deletes all display layers except defaultLayer.

openpypeline.app.maya.file.file.set_workspace(proj_path, rules)[source]

Sets the Maya workspace and file rules.

openpypeline.app.maya.file.file.is_modified()[source]

Returns True if the current scene has unsaved changes.

openpypeline.app.maya.file.file.record_playblast(filepath)[source]

Records a playblast to the given filepath.

openpypeline.app.maya.file.file.create_thumbnail(filepath)[source]

Takes a snapshot of the current scene and saves it to filepath.

Module contents