   Somebody work with Max.Net in c#?
  Hello!I 'd like to use a Maxscript code in c#, and I 'd like to work with the ephere max.net So, my script is create a cuboid, with paramters, and thextures, which are from a text file. This script is working in the 3d Studio Max, but I need to work in C#. So, somebody sad the ephere max.net can use the maxscript code in c#. I think is true, but it's create an error, when I 'd like to execute the script..."NullReferenceException was unhandled" - this is the error messageThe code is:public class MyPlugin: IPlugin{  private IGlobal _global;  public void Initialize(IGlobal global, ISynchronizeInvoke sync)  { this._global = global;  }  internal static IValue MaxScriptExecute(string str, IGlobal global)  { bool res = false; return global.ExecuteScript(global.StringStream.Create(str), res);  }  public void Cleanup()  { string script = "assembly = dotNet.loadAssembly \"C:\\temp_viewer\\max.dll\""+  "ThisTestObject = dotNetObject \"max.TestObject\""+  "end = (ThisTestObject.readFromFile \"C:\\temp_viewer\\test.txt\")" +  "for i= 0 to end - 1 do"+  "("+  "actionMan.executeAction 0 \"40021\"  -- Selection: Select All" +  "actionMan.executeAction 0 \"40020\"  -- Edit: Delete Objects" +  "Box lengthsegs:1 widthsegs:1 heightsegs:1 length:(ThisTestObject.zValue i) width:(ThisTestObject.xValue i) height:(ThisTestObject.yValue i) mapcoords:on pos:[-2.95203,1.10701,-130] isSelected:on"+  "modPanel.addModToSelection (Edit_Poly ()) ui:on"+  "meditMaterials[1] = Multimaterial ()"+  "meditMaterials[1].material1.diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\top.bmp\")"+  "meditMaterials[1].materialList[2].diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\bottom.bmp\")"+  "meditMaterials[1].materialList[3].diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\left.bmp\")"+  "meditMaterials[1].materialList[4].diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\right.bmp\")"+  "meditMaterials[1].materialList[5].diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\front.bmp\")"+  "meditMaterials[1].materialList[6].diffuseMap = Bitmaptexture fileName:((ThisTestObject.pathValue i) + \"\\back.bmp\")" +  "$.material = meditMaterials[1]" +  "ExportFile (\"C:\\temp_viewer\\rubic_cube\" + (i as string)+ \".fbx\") #noPrompt"+  ")"; IINode myNode = MaxScriptExecute(script, _global).ToNode;  }}}So, somebody work with this before, can help me?   