Maxscript (MXS) function &variable &argument
Trying to learn what does mean & symbol in front of variable name. MXS example would be:
-- Global variables (globals) can be accessed from any function at any given time global head -- We call our Read function fn Read bitStream &head =
fn stands for function
Read is a function name
bitStream is a local variable (binstream type, it holds binary file inside itself for my example)
head is global variable
= (equal sign) shows function returns value? (though in Maxscript every function returns value anyway? It would be last expression which result will be returned as function return value if script writer does not specify function return value)
-- Read function which was called fn Read bitStream &header = ( )
My question is what does do & sign in front of &header?
Does &head (in first script example) indicate I pass global
variable to function Read?
I assume it indicates: "I am not ordinary function argument, instead I am a global variable!"
This script is written for 3ds Max 2010.