by jcdb » Sun Aug 03, 2008 11:29 pm
I'm looking for the Purge All script. I've used it before but I don't know where I got it from. Smustard doesn't have it and the Ruby Library Depot is down. I've searched this forum and can't find it here either. Does anybody have it that can post it? Thanks.
Last edited by TIG on Fri Feb 14, 2014 4:35 pm, edited 3 times in total.
Reason: Just cleaning up and organizing the Plugin forum.
-

jcdb
- Premium Member

-
- Posts: 63
- Joined: Tue May 13, 2008 1:36 am
- Location: Austin, Texas
- Name: Eddy Jauregui
- Operating system: Windows
- SketchUp version: pre-2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by TIG » Mon Aug 04, 2008 12:20 am
Get the latest version from the PluginsStore Download
TIG
-

TIG
- Global Moderator
-
- Posts: 20211
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by solo » Mon Aug 04, 2008 12:24 am
probably my most used ruby. 
-

solo
- Global Moderator
-
- Posts: 12429
- Joined: Mon Nov 12, 2007 1:46 pm
- Location: The Colony, Texas
- Name: solo
- Operating system: Windows
- SketchUp version: 2017
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by jcdb » Mon Aug 04, 2008 1:24 am
TIG wrote:From the horse's mouth...
Thanks TIG. I got some purging to do.
-

jcdb
- Premium Member

-
- Posts: 63
- Joined: Tue May 13, 2008 1:36 am
- Location: Austin, Texas
- Name: Eddy Jauregui
- Operating system: Windows
- SketchUp version: pre-2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by cyan.archnet » Mon Aug 04, 2008 1:38 am
THANKS A LOT!!
-
cyan.archnet
-
- Posts: 52
- Joined: Tue Jun 03, 2008 10:32 am
- Name: cyan.archnet
by chango70 » Mon Aug 04, 2008 10:47 am
Quick question. When you say purge all, what exactly does it purge? It just sounds a bit scary.
-
chango70
-
- Posts: 586
- Joined: Tue Mar 25, 2008 3:06 pm
- Location: London
-
by Jim » Mon Aug 04, 2008 11:07 am
chango70 wrote:Quick question. When you say purge all, what exactly does it purge? It just sounds a bit scary.
Good point... It Purges all UNUSED Components, Layers, Materials, Styles.
Hi
-
Jim
- Global Moderator
-
- Posts: 4678
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: ohio
- Name: Jim
- Operating system: Windows
- SketchUp version: 2017
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Intermediate
-
by chango70 » Mon Aug 04, 2008 11:27 am
Cool! Where have I been without this script!!!
-
chango70
-
- Posts: 586
- Joined: Tue Mar 25, 2008 3:06 pm
- Location: London
-
by Mike Lucey » Mon Aug 04, 2008 12:16 pm
A very useful script, thanks again TIG 
-

Mike Lucey
- Mayor
-
- Posts: 7622
- Joined: Mon Oct 22, 2007 1:22 pm
- Location: Co. Clare, Ireland
- Name: Mike Lucey
- Operating system: Mac
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Mon Aug 04, 2008 12:18 pm
'Purge' is used in the sense of cleansing - purifying - getting rid of unwanted things.
It is the automated version of 'Purge Unused...' option that's available as a pop-out for individual types of things.
This script will remove from the model's data-base unused Components, Layers, Materials or Styles in any combination - allowing you to keep say Materials whilst clearing up the rest... It also reports what's been done if that option is selected. You already can globally purge-unused everything using the Model Info > Statistics dialog - but then that's everything that's unused - no choices, and you might want to keep some kinds of things...
.
TIG
-

TIG
- Global Moderator
-
- Posts: 20211
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by pibuz » Mon Aug 04, 2008 12:53 pm
..er..sorry.. But doesn't the "PURGE UNUSED" option in MODEL INFO->STATISTICS just the same?
-
pibuz
-
- Posts: 358
- Joined: Tue Dec 04, 2007 10:35 am
- Location: Padua, Italy
- Name: Filippo Scarso
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Burkhard » Mon Aug 04, 2008 1:21 pm
TIG wrote: You already can globally purge-unused everything using the Model Info > Statistics dialog - but then that's everything that's unused - no choices, and you might want to keep some kinds of things...
. 
-

Burkhard
- Premium Member

-
- Posts: 938
- Joined: Sat Nov 17, 2007 12:45 pm
- Location: Germany
- Name: Burkhard
- Operating system: Windows
- SketchUp version: pre-2013
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
by Dave R » Mon Aug 04, 2008 1:47 pm
pibuz wrote:..er..sorry.. But doesn't the "PURGE UNUSED" option in MODEL INFO->STATISTICS just the same?
As TIG says and Burkhard quoted you have options with the plugin. In addition, you can set a keyboard shortcut for it to make it easier to do.
Etaoin Shrdlu
%
(THERE'S NO PLACE LIKE)
G28 X0.0 Y0.0 Z0.0
M30
%
-

Dave R
- Global Moderator
-
- Posts: 18862
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Name: Dave R
- Operating system: Windows
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
-
by Mr S » Thu Aug 07, 2008 11:43 am
Well, it might not provide any fancy effects but this is an addictive little tool. Its amazing how much "stuff" is hiding in the background that you are unaware of. Particulary after importing CAD drawings it removes a lot of unwanted content. I keep wanting to run it every five minutes to see if it can remove anything else that shouldn't be there!
Thanks.
Mr S ------
-
Mr S
-
- Posts: 264
- Joined: Fri Nov 16, 2007 3:44 pm
- Location: Liverpool, England
by j40 » Mon Jun 15, 2009 5:38 pm
I tried to use purgeall.rb on my scene, but it fezzes SU and than crash. Similar thing happens when i use su's purge on this model. I have more than 200 materials of witch i use only 5 !
-
j40
-
- Posts: 62
- Joined: Tue May 26, 2009 7:58 am
- Location: Italy
- Name: J40
-
by Chris Fullmer » Mon Jun 15, 2009 5:50 pm
Try doing a manual purge by going to Window>Model Info>Statistics>Purge All
See if that crahes SU also.
Chris
-

Chris Fullmer
- SketchUp Team

-
- Posts: 6929
- Joined: Wed Nov 21, 2007 3:21 am
- Location: Boulder, CO
- Name: Chris Fullmer
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by thomthom » Mon Jun 15, 2009 6:04 pm
Chris Fullmer wrote:Try doing a manual purge by going to Window>Model Info>Statistics>Purge All
See if that crahes SU also.
J40 wrote:Similar thing happens when i use su's purge on this model.
Sounds like it's something with the model. Have you tried importing to a new file?
-

thomthom
- PluginStore Author

-
- Posts: 19500
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by Chris Fullmer » Mon Jun 15, 2009 6:50 pm
 Oops, I totally missed the line where J40 said they had already tried it manually. Sorry!
-

Chris Fullmer
- SketchUp Team

-
- Posts: 6929
- Joined: Wed Nov 21, 2007 3:21 am
- Location: Boulder, CO
- Name: Chris Fullmer
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by chango70 » Mon Jun 15, 2009 8:04 pm
I've recently had some issues with purge all and VRay 1.05. Basically the purge all removes some relinked Jpeg texture overides (they remain in the Sketchup Model but just doesn't render). Can be fixed easily be relinking the image. Is there a way around this? Or should I create SKMs manually for all the new textures I use?
-
chango70
-
- Posts: 586
- Joined: Tue Mar 25, 2008 3:06 pm
- Location: London
-
by thomthom » Mon Jun 15, 2009 8:11 pm
chango70 wrote:I've recently had some issues with purge all and VRay 1.05. Basically the purge all removes some relinked Jpeg texture overides (they remain in the Sketchup Model but just doesn't render). Can be fixed easily be relinking the image. Is there a way around this? Or should I create SKMs manually for all the new textures I use?
I don't understand. Texture overrides? Create SKMs manually?
-

thomthom
- PluginStore Author

-
- Posts: 19500
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by chango70 » Mon Jun 15, 2009 10:19 pm
thomthom wrote:chango70 wrote:I've recently had some issues with purge all and VRay 1.05. Basically the purge all removes some relinked Jpeg texture overides (they remain in the Sketchup Model but just doesn't render). Can be fixed easily be relinking the image. Is there a way around this? Or should I create SKMs manually for all the new textures I use?
I don't understand. Texture overrides? Create SKMs manually?
What I mean is. When you are unsatisfied with a defaul sketchup texture (.skm) what we do is relink it to a new texture. If you rename the relinked file and right click on it and do a save-as, you can save it as a .skm file in your default sketchup material library.
-
chango70
-
- Posts: 586
- Joined: Tue Mar 25, 2008 3:06 pm
- Location: London
-
by cupko » Tue Dec 07, 2010 10:59 am
Just want to thanks TIG on this amazing plugin 
-
cupko
-
- Posts: 27
- Joined: Sat Apr 11, 2009 10:35 pm
- Name: cupko
by watkins » Sun Feb 13, 2011 8:45 pm
Dear TIG,
This plugin would be even better with two icons: Purge All (no choice) and Purge Selected (with the dialogue box and choices).
Is this something that you could add to your long to-do list?
Best wishes, Bob
-
watkins
-
- Posts: 1426
- Joined: Wed Nov 14, 2007 5:47 pm
by watkins » Sun Mar 13, 2011 1:13 am
Dear TIG,
Would it be possible for the 'report' to list what it has purged? At the moment it simply tells you how many of each type it has purged (6 components, 2 layers etc), but not what. I would find that option really useful when working on large models
Kind regards, Bob
-
watkins
-
- Posts: 1426
- Joined: Wed Nov 14, 2007 5:47 pm
by TIG » Sun Mar 13, 2011 4:05 pm
watkins wrote:Dear TIG, Would it be possible for the 'report' to list what it has purged? At the moment it simply tells you how many of each type it has purged (6 components, 2 layers etc), but not what. I would find that option really useful when working on large models Kind regards, Bob
It would have to be into some 'log' file with the model - say log='Model-Purgelog.txt' which auto opens if you have 'Report' set. [That could extend to No|Yes|Log ]. It WOULD take more time as it needs to make a lists for each type purged - e.g. for components defsIN=model.definitions.to_a and then after the purge defsOUT=model.definitions.to_a, then find what's 'gone' defsGONE=defsIN-defsOUT, then find their names and add them to the 'log' with defsGONE.each{|d|file.puts(d.name)}... I'll think about it... 
TIG
-

TIG
- Global Moderator
-
- Posts: 20211
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Sun Mar 13, 2011 5:01 pm
Here's v1.5 viewtopic.php?p=82559#p82559The Report option now has Yes/No/Log If you choose 'Log' then as well as reporting the numbers purged in a dialog, it also writes a file called 'ModelName-PurgeLog.txt' into the model's folder [or 'Untitled-...' and in the 'default folder' if it's yet to be saved]: that file then auto-opens at the end - it lists the numbers AND the 'names' of each of the purged items... All as Bob's [watkins] request 
TIG
-

TIG
- Global Moderator
-
- Posts: 20211
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by watkins » Sun Mar 13, 2011 6:29 pm
Dear TIG,
Thank you so much for making the changes. I will find the additions very useful.
Kind regards, Bob
-
watkins
-
- Posts: 1426
- Joined: Wed Nov 14, 2007 5:47 pm
by watkins » Mon Mar 14, 2011 12:09 am
Dear TIG,
Just a quick note to thank you for the additions. The plugin is now definitely the dog's love spuds (translate that into Spanish).
Thanks, Bob
-
watkins
-
- Posts: 1426
- Joined: Wed Nov 14, 2007 5:47 pm
by morri » Sun Mar 20, 2011 3:20 am
watkins wrote:Dear TIG,
Just a quick note to thank you for the additions. The plugin is now definitely the dog's love spuds (translate that into Spanish).
Thanks, Bob Seconded! Another Bob
-
morri
-
- Posts: 3
- Joined: Mon Dec 15, 2008 12:34 pm
- Name: Rob
by troikhongxanh » Sat Aug 20, 2011 4:34 am
cool !!! thank you very much
-
troikhongxanh
-
- Posts: 1
- Joined: Sat Aug 20, 2011 2:25 am
- Name: kawa
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|