Maximum (Expression Function Reference)

 
 
 

The Function Value Maximum command in the expression editor inserts the token MAX(<val1>,<val2>) at the insertion point in the editing pane. This token evaluates two expressions and returns the higher value. Replace the dummy arguments <val1> and <val2> with other expressions. You can add more expressions separated by commas, and the function will return the maximum value of all of them.

Example

MAX(sphere.kine.local.posx, sphere.kine.local.posy, sphere.kine.local.posz)

Returns whichever value is higher: the local X, Y, or Z translation of sphere.

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