Visible Class For '&' Reference Values

Dereferencing Operator

In releases prior 3ds Max 4, the class of a reference value (as returned by the '&' prefix operator) was shown as Value. It is now the class 'ValueRef'.


ref = &

classOf ref -> ValueRef

if classOf x == ValueRef then y = *x

Nested property accessing allowed in '&' reference values in MAXScript.

This allows constructs like: r = &$foo.pos , and later *r.controller to mean $foo.pos.controller.

See also

By Reference Parameter Passing

Dereferencing Operator