MAXScript provides the C language shorthand form of assignment that can be used to modify a value in place, as shown in the following long-form examples:
Corresponding to the four math operations ( + , - , * , and / ) are assignment operators that apply the operation to the assignment's destination and update the destination with the result.
<destination> += <expr> -- add <expr> to destination <destination> -= <expr> -- subtract <expr> from destination <destination> = <expr> -- multiply destination by <expr> <destination> = <expr> -- divide destination by <expr>
Using the shorthand form of assignment, the previous examples can be written as: