I'm trying to use "material.classes" and return that value as a string, but I can't work out how. I used the documentation to send the command off:
public static IValue MaxScriptExecute(IGlobal global, string str)
{
var result = false;
return global.ExecuteScript(global.StringStream.Create(str), result);
}
...but casting the returned value .ToString_ crashes max.