From the course: Maya: Natural Environments

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Editing a random expression in SeExpr

Editing a random expression in SeExpr - Maya Tutorial

From the course: Maya: Natural Environments

Editing a random expression in SeExpr

- [Instructor] Now that we have a basic understanding of the syntax of se expression, we can be script kitties. We can make an adjustment to an existing script and give it more bells and whistles and give us more artistic control. In order to see this a little bit more clearly, in the XGen editor, in the primitives tab, in the generator attributes I'm just going to reduce the density down to 20. It'll be easier for us to see what we're doing now. In the primitive attributes, under length, click to launch the expression editor and we can make the text larger with a keyboard shortcut Control and turn the mouse wheel. This expression uses the built-in rand function to generate random numbers. And in the expression editor here, built-in functions are displayed in this cyan color. Rand is currently using a fixed range of random values between 0.7 and 1 that's being multiplied by the slider value. We see here, there's a slider…

Contents