ART_EditRigUI

Author: Jeremy Ernst

class Interfaces.ART_EditRigUI.ART_EditRigUI(edit, add, parent=None)[source]

This class builds a tool that allows a user to Edit a Rig or Add Character for Animation. Both functions use the same interface. The title and button text get swapped out depending on which situation has been called for by the A.R.T.2.0 menu.

_images/editRig.png
__init__(edit, add, parent=None)[source]

Instantiates the class, getting the QSettings and building the interface.

Parameters:
  • edit – Whether or not the operation is to edit the rig.
  • add – Whether or not the operation is to add the character for animation.
addSelected(*args)[source]

Finds the selected character, and references that file into the currently opened scene. The path is constructed using the QSettings info, with any group as a subfolder, and lastly the selected asset/character as the last part of the path.

Also handles namespaces, adding the new namespace to the network node of the added asset, and launches the animationUI.

closeUI()[source]

Closes and deletes the interface for the class.

createUI()[source]

Builds the UI, listing options for choosing a project and showing all assets belonging to that project for edit or add.

editSelected(*args)[source]

Find the selected character, and open that file for edit. The path is constructed using the QSettings info, with any group as a subfolder, and lastly the selected asset/character as the last part of the path.

populateCharacters()[source]

Given the selected project and group, populate the QListWidget with any assets found using that information. The project path comes from the QSettings, the group is a subfolder of the project.

populateGroups()[source]

Given the selected project, populate any groups for that project (using the project path from QSettings) and add them to the groups QComboBox.

Then, call on populateCharacters.

See also

ART_EditRigUI.populateCharacters()

populateIcon(*args)[source]

Given the selected character, display the correct icon for that character in the UI.

populateProjects()[source]

Find all projects on disk (using the project path setting) and add each project to the QComboBox. Then, call on populateGroups.

See also

ART_EditRigUI.populateGroups()

unsavedChanges(path)[source]

Displays a message box that warns the user of unsaved file changed and returns their response.

Returns:Returns the user response (Save, Don’t Save, Cancel)
Interfaces.ART_EditRigUI.getMainWindow()[source]

Get Maya’s window as a QWidget and return the item in memory.

Returns:a QWidget of Maya’s window
Interfaces.ART_EditRigUI.run()[source]

Creates an instance of the class for Editing a rig. The ARTv2 menu calls on this function.

Interfaces.ART_EditRigUI.runAdd()[source]

Creates an instance of the class for adding a rig for animation. The artv2 menu calls this function.