local and global variable... a local variable inside the scope of the ( ) they're in while global variable can be accessed anytime. I suggest to stick with local as much as you can. ie:(local test)print test this will give an undefined error as the variable test is not defined outside the ()(local testprint test) works…
You will probably want to read up on the layer manager in the maxscript help files. http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=files/GUID-78B79975-7BA5-4A03-8FEF-27E78D14B575.htm,topicNumber=d30e259872 You will need to define the layer probably with "getLayerFromName" and then use ".addnode" to…