![]() ![]() This means you don't have to do anything special in your scripts to work at the correct time. In the case of Script controllers, the time being evaluated is used to establish an automatic "at time" context around the controller script, so any properties you access (outside of other explicit “at time” expressions) yield the correct values for the current controller evaluation time. This might be the current time slider or incrementing frame time if an animation is playing, or a rendering is under way. You can also declare or access global variables that are shared with all other scripts in MAXScript and hold their values from one evaluation to the next.Ī controller is always evaluated by 3ds Max with respect to a specific animation time. This value must yield the right type for the controller: float for Float, point3 for Position, quat for Rotation, matrix3 for Transform, and so on.īecause the text is inside a block expression, you can declare local variables that are visible only within the script and are temporary for one evaluation. The value of the last expression is taken as the controller value. You can type as many expressions as you want on as many lines as you want, and they are evaluated in turn. 3ds Max interprets the text you type into the Script text box as the body of a MAXScript block expression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |