I managed to figure out the solution to both issues! The warnings seem to have been caused by trying to declare and set both arrays before the first for loop. I reordered things a bit and now it runs without any problems. As for the slowdown, there was actually nothing wrong with the script - it was due to the viewport…
@Veer_P An interesting shape, they're typically fiddly to model in polygonal subd that are usually fabricated using an extruded die cast mould' and also CAD designed, hence indeed a challenge so my approach would be as if modeling a car body shell of some sort with a Shrinkwrap Modifier. Because there's a similarity in…
You have to set the selected modifier again for the icon to refresh. Here's some simple changes to fix the icon issue and prevent some potential errors: if classof subobjectlevel != Integer do setCommandPanelTaskMode #modify theObjs = selection as array if theObjs.count > 0 do ( CurrentMod = modpanel.getCurrentObject() if…
I selected both layers in item mode, then right click and used 'Export Selected Layers' - I selected FBX export and 'Just Layers' in the export options popup. My FBX export settings: