Explode Everything?
-
Is there a plugin that explodes all geometry including Arcs, Curves and Polylines in one go?
-
Bomb comes close, but I don't know about arcs and such. Who wrote that, TIG? It could probably be easily modified.
-
Try this...
module TIG def self.exploderizer() ss=Sketchup.active_model.selection self.exploder(ss.to_a) ss.clear end def self.exploder(ents) ents.each{|e| if e.class==Sketchup;;Group self.exploder(e.entities.to_a) elsif e.class==Sketchup;;ComponentInstance e.make_unique if e.definition.instances[1] self.exploder(e.definition.entities.to_a) end e.explode if e.respond_to?(;explode) e.explode_curve if e.respond_to?(;explode_curve) and e.curve } end end
Usage:
TIG.exploderizer.new
to explode all selected groups/instances/images/curves etc -
I don't want to explode groups components just geometry when I'm inside.
-
Ahh. I do it in shapebender, but that's probably a long way around a simple problem.
-
Easier
module TIG def self.geometryexploderizer() Sketchup.active_model.selection.to_a.each{|e|e.explode_curve if e.respond_to?(;explode_curve) and e.curve} end end
Usage:
TIG.geometryexploderizer.new
to explode all selected geometry - i.e. 'curves' - ignoring groups/instances/imagesYou might want to give it a snappier name
-
Kinda....since I'm not bending anything. I'm exporting to an app that doesn't like polylines etc. So at the moment I'm selecting all geometry then using Bombom's Selections Toys to highlight arcs, curves and polylines then 'Explode Curve'.
-
So you need a 'nuke_all.rb'
-
Good name
I'll try it myself with TIG's posted code
Advertisement