Mike --
Will do... (if this file ever gets exploded).
Seriously, though, what an arseache.
Before I ran bomb.rb, I Unhid All, so there would be NO hidden geometry, but I'm stll getting these 'Your recent operation has caused geometry to become merged with hidden geometry'. How, if there's no hidden geometry?
And what's more, I'm also getting 'Your recent operation has caused geometry to become merged with geometry on a hidden layer'.
Now, here's a clue: I DON'T USE LAYERS. The only layer that there can be in my model is Layer 0, which is visible by default. I don't think the problem is with bomb.rb, it's some change made to the app itself.
Oh, and I only got TIG's script after I started the current Explode All operation (at 2 o'clock yesterday arvo).
Right. It's just finished.
This is what I got from the Ruby console:
erase_if_hidden
Error: #<NameError: undefined local variable or method `erase_if_hidden' for main:Object>
(eval)
edit: Oh, and this from the Load Error window:
^Error Loading File erase_if_hidden.rb
/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/erase_if_hidden.rb:1: parse error, unexpected tCONSTANT, expecting kEND
def erase_if_hidden()
Sketchup.active_model.entities.to_a.each{|e|e.erase! if e.valid? and e.hidden?}
Sketchup.active_model.definitions.each{|d|d.entities.to_a.each{|e|e.erase! if e.valid? and e.hidden?}}
end#def