I haven't defined anything as a string (the script text is above) Other scripts don't define the names as strings so I don't understand why mine isn't working :( :P
It isn't defined at all. A block inside a "on button pressed" can't acces local variable from an other block. You have to redefine the path. See my code above. Then, you don't have to specifically define the type"as string", Max does it by itself.
because $ is the same as selection as array. If you have multiple objects selected, $ returns an array of all those objects. Hence you can't access the name with $.name. Also there is a scope issue, as you define folderpath under "on btn_browse pressed" folderpath is local variable, so it is undefined under on btn_export…
mmh i'm not able to get using:exporterPlugin.Classes[13] to work. What format do you want to save to? Iges ? We could simply define the extension. on btn_export pressed do ( sel = selection as array folderPath = edt_path.text --redefine folderPath here theClasses =exporterPlugin.classes for obj in sel do --for each object…