[Plugin] Image 2 Model
-
If Susan is showing up it because she is in your default template.
I take a look at exploding.
-
You could always some code at the start to erase all model entities...
Sketchup.active_model.entities.erase_entities(Sketchup.active_model.entities.to_a)
[or aSketchup.active_model.entities.clear
[edit]]
Then.purge_unused
for all model components, materials, layers and styles before adding the new image into the now sanitized model.
Surelyimage.explode
will do the desired extra step ? -
Added a .clear! to make sure the new file is empty. Exploded the image and hide the edges.
-
The 'entities.clear' only erases the instance of Susan [and any other stuff placed in the default template].
BUT the definition still remains in the SKP, as do any now-unused related materials, layers etc.
It's best to have a '.purge_unused' for these after the '.clear'... -
I haven't been able to find .purge_unused.
sorry, I did find it for materials and styles.
Searching returned no results.
-
Your search tool is faulty...
https://developers.google.com/sketchup/docs/ourdoc/definitionlist#purge_unused
https://developers.google.com/sketchup/docs/ourdoc/materials#purge_unused
https://developers.google.com/sketchup/docs/ourdoc/layers#purge_unused
https://developers.google.com/sketchup/docs/ourdoc/styles#purge_unused -
I did the search, .purge_unused, at
https://developers.google.com/sketchup/docs/
which is the Ruby API page and it found nothing. Apparently it was the "." that cause the failed search. Lots of results without it.
-
First post updated with [plugin] tag.
Got a bit busy and haven't had a chance to truly say thanks! SDMitch, I owe you a beer! Plugin works great. Thanks again!
-
@sdmitch said:
Added a .clear! to make sure the new file is empty. Exploded the image and hide the edges.
I opened the PNG image, the view does not show
-
Just wanted to say thanks for this plugin, it really is super helpful!
-
@Earthmover
can You do a quick explanation video tutorial?
thanks!!
Advertisement