From: BlackBird
Hi Michael,
is it possible to add a function to remove unused Styles?
You could add this function below the "Add default styles"
(maybe in red, if its not complete undo-able [because of iterations] and its not against your ui-philosophy)
Sometimes i import dxf-drawings and after deleting unusesd geometry the styles are remainig and clutter the outliner / overview / table thing.
I think this is an easy task for you to do and maybe someone else would also appreciate this.
Thank you...
(can't wait to buy the V5 upgrade)
Image Attachments:
rem_unused_styles.png
From: Michael Gibson
Hi Blackbird, File > Export will write only used styles to the file.
So one way you can do that currently is to select all objects and use File > Export to write out selected objects to a .3dm file and then load that back in with File > Open.
I'll see about adding it to the Style tools menu too.
- Michael
From: Marbleman
Hi Michael,
I am sure I have seen a PurgeUnusedLayer script somewhere…
From: Michael Gibson
Hi James,
> I am sure I have seen a PurgeUnusedLayer script somewhere…
Found it:
https://moi3d.com/download/scripts/PetrsMoiPage/PetrsMoiPage.htm#PurgeUnusedLayer
- Michael
From: BurrMan
Marble for the win!
(Edit: Missed it by that much....)
Attachments:
PurgeUnusedLayers.js
From: BlackBird
thx for the script file.
From: BurrMan
"""""""""thx for the script file."""""""""""
Sure BlackBird!
Note to those reading forum to understand the software better:
I put the scripts into a js file and it then allows me to keep organized better. It keeps my ini file more compact as i move forward. Max's custom UI then created a popup window which visually shows me all my "commands"! So helpful to remember what you have. Someday, Michael will create the "commands manager", which will replace that temporary function.
So if you follow the link Michael posted, there are several "scripts" written. These also pop into the forum discussion regularly. These are meant to put into a shortcut key and commanded there.
MoI internally handles "scripts and commands" differently. In process. outside of process... A bunch of descriptions i am not totally familiar with, but they affect how MoI executes things with relation to "immediate and forget.... Process is aware" and other explanations (Michael has explained the whole thing in the past, for techy understanding)
So Michael had setup second folder where this can be split naturally, MoI comes with "commands" folder. It can also have a "scripts" folder where the "execute and forget" process directive occurs.
You can take any script and put it a text editor and save it with "js" extension. You now have object to manage outside of ini file. I prefer this.
They can all go into commands folder. But you can benefit by trying to keep things separate.
All of this is excess and not necessary!