sochin
September 3, 2023, 11:27pm
1
I only ever export files in 4 different file formats. Is there a way to reduce the format selection from the option window to just those?
In R5 Windows years ago I edited a file on my computer that achieved this and hoping to be able to do the same on the Mac.
cheers,
Sochin
John_Brock
(John Brock)
September 3, 2023, 11:36pm
2
I suppose in Preferences > Plugins, you could disable the plug-ins for exporting the file formats you never use.
pascal
(Pascal Golay)
September 3, 2023, 11:51pm
3
This works to truncate the list, but in V8 only - and I do not know about Mac - but not in V7, at least on Windows.
-Pascal
1 Like
sochin
September 3, 2023, 11:55pm
4
@John_Brock Was trying that as @pascal was typing. Changed and restart and like Pascal said it does not work. Still have 43 options.
I can set up an alias for Export but is it possible to add the file format or do I need to look at a python script for that?
cheers,
Sochin
sochin
September 4, 2023, 12:38am
5
Until I go to R8 on the Mac I have modified a script from a post by Mitch @Helvetosaur from 2019 and via an alias it is doing what I want. 4 different alias but easy to remember and much faster than scrolling through those options for me.
Gotta love these forums and the info here. Thanks for the help, got me to where I needed to be.
No, this will work to select all the objects in the last “bake” operation - that is why I posted it.
So, your script might look like this:
import rhinoscriptsyntax as rs
def ExportIGESFile():
filter="IGES files|.igs||"
filename=rs.SaveFileName("Iges export",filter)
if not filename: return
#make sure nothing is selected first
rs.UnselectAllObjects()
#select your just-baked object(s) here - will get them all
rs.Command("_SelLast")
rs.Command("_-Export "+chr(34)+…
cheers,
Sochin