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

Synopsis

expressionEditorListen([listenFile=string], [listenForAttr=string], [listenForExpression=string], [listenForName=string], [stopListenForAttr=string], [stopListenForExpression=string], [stopListenForName=string])

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

expressionEditorListen is undoable, NOT queryable, and NOT editable.

Listens for messages for the Expression Editor, at its request, and communicates them to it. This action is for internal use only and should not be called by users. This action should be called only by the Expression Editor.

Return value

None

Flags

listenFile, listenForAttr, listenForExpression, listenForName, stopListenForAttr, stopListenForExpression, stopListenForName
Long name (short name) Argument types Properties
listenFile(lf) string create
Listen for changes to the file argument.
listenForAttr(la) string create
Listen for changes to the attributes of the node argument.
listenForExpression(le) string create
Listen for changes to the named expression
listenForName(ln) string create
Listen for name changes for the node argument.
stopListenForAttr(sla) string create
Stop listening for changes to the attributes of the node argument.
stopListenForExpression(sle) string create
Stop listening for changes to the named expression
stopListenForName(sln) string create
Stop listening for name changes for the node argument.

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

cmds.expressionEditorListen()