Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

createEditor( string node , [queueForDelete=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

createEditor is undoable, NOT queryable, and NOT editable.

This command creates a property sheet for any dependency node. The second argument is the name of the node, and the first is the name of a layout into which the property sheet controls should be placed.

The property sheets created by this command can by user-customized using the editorTemplate command.

Return value

None

Flags

queueForDelete
Long name (short name) Argument types Properties
queueForDelete(qfd) boolean create
The specified layout is put on a queue. When the queue is full, layouts past the end of the queue are automatically deleted. If the layout is already on the queue, it is moved to the front. This allows us to dispose of editors when they are no longer being used. This flag should only be used by the showEditor.mel script.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# The following command will create an attribute
# editor in someWindow|topLayout for curve2.
#
cmds.createEditor( 'someWindow|toplayout', 'curve2' )