amazingly, yes, i understand what Coolfile is asking.
The problem is that I haven't done any scripting for almost 1.5 years and my knowledge is getting very rusty.
Coolfile, may I suggest posting that question on either the GMAX forum or on the 3dsmax support forum. There are a few VERY talented people out there that are kind enough to help other fellow scripters...
GMAX forum
http://www.gmaxsupport.com/forum/cgi-bin/ultimatebb.cgi
3dsmax forum (best forum)
http://support.discreet.com/webboard/wbpx.dll/~3dsmax