Specifying Global Variables As Global Using ::

In 3ds Max 8 and higher, a global variable can be specified by preceding its name with double-colon '::'.

Such names are looked for only in the global variable pool, and will be created there if they do not currently exist.

FOR EXAMPLE:

(
local pi = "Hello!"
format "% : %\n" pi ::pi
fn test x:pi y:::pi = format "% : %\n" x y
test()
)

OUTPUT:

Hello! : 3.14159
Hello! : 3.14159

See Also