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…
Class 13 is a custom format we have here at work. The new snippet you sent works a treat! Thank you very much for helping me out man, sorry to pull you from your LoL game :P Here's the final script in case anyone wants to use it (you will have to change the exporter plugin class) To see the list of classes you have type…