XGen Expression Editor

 
 
 

The Expression Editor lets you create new expressions or apply XGen sample expressions that control the placement, behavior and appearance of primitives. To open the XGen Expression Editor, click the icon located beside attributes in the XGen Window tabs. For XGen expression technical documentation, see XGen Expressions.

The XGen Expression Editor has the following main areas:

Expression Editor tabs

Click the Library or Samples tab to display pre-authored expressions. Select an expression from the list to apply it the selected Primitive attribute. Type keywords in the search area at the top of the expression list to find expressions containing your keyword.

These tabs are customizable. You can add new tabs by creating new subdirectories in global, local, and user folders. For example, the Library and Sample folders generate from the following location when the XGen Expression Editor is opened:

C:\Program Files\Autodesk\Maya2014\plug-ins\xgen\presets\expressions\library 
C:\Program Files\Autodesk\Maya2014\plug-ins\xgen\presets\expressions\samples

Expression swatch

Depending on the type of expression you are working with in the Expression Editor, the swatch displays:

Expression value controls

Use the sliders to set the attribute values used by the expression. You can also type these values in the expression text field.

Expression text field

The text field displays all of the components used in the expression. Use the sliders to set the attribute values used by the expression. You can also type these values in the expression text field.

The text field area in the XGen Expression Editor provides the following syntax support features:

Expression Editor commands

When creating or editing expression, you can use the following commands:

Accept

Returns the current expression and assigns it to the expression control, but does not save it to disk.

Save

Saves the current expression (.se) file to the User folder. If the expression does not already exist, the Save Expression window opens, which lets you specify a name and location for it.

Save As

Opens the Save Expression window opens, which lets you specify a name and location for the expression.

Cancel

Cancels the current expression editing session.

NoteNavigating the expression tree can trigger file saves if the current expression is being edited.

Related topics

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License