Use the XGen Expression Editor to create new expressions or apply saved XGen expressions to your Descriptions. To open the XGen Expression Editor, click the icon located beside attributes in the XGen Editor. You can open multiple instances of the editor.
The XGen Expression Editor has the following main areas:
Click the Library to display user-saved expressions or Samples to display expressions that come with Maya. Select an expression from the list to add it to the expression edit area.
By default, the Library and Samples folders are located in the following location:
XGen adds slider controls to the editor when you declare local variables in an expression.
Click Add Widget to add the following value controls to your expressions:
The XGen Expression Editor provides the syntax features described below:
Expression component | Text color | Example |
---|---|---|
Local variables and numeric values | White | |
Global variables | Green | |
Functions | Cyan | |
Parameter definitions and comments | Red | |
File paths and strings | Yellow | |
Constants | Orange |
For functions, place the cursor in the parenthesis to display information about accepted arguments.
Checks the syntax, executes the expression, and updates the Description preview. Selecting Accept also closes the XGen Expression Editor after the expression executes.
Expressions saved to this location can be selected from the User list of the editor's Library tab.