I’m using a slightly modified version of http://wiki.mcneel.com/developer/scriptsamples/exportlayerobjects for a mass fbx export but have to hold down enter for a minute while it exports. Silly. Is there a reason the “-” flag on Export wouldn’t work?
Snippet with the rhino command
If IsArray(arrSelected) Then ' Generate a modified path string ' that includes the layer name strFile = strPath strFile = Replace(strFile, ".3dm", "_" & strLayer & ".fbx") ' strFile = strLayer & ".fbx" ' Export the selected objects Rhino.Command "_-Export " & strFile, 0 End If Next