Images vs. textures?
-
I've recently had to start combining existing models into large, complex models, as opposed to the modeling from-the-ground-up that I have more experience in. In trying to clean up some of these models from other users, I discovered that instead of textures, some people have been "painting" with images, in a sense (attaching them to flat walls and whatnot).
I tried a purge, which successfully cleaned up many textures and components the larger model did not need, but it still says the file has over 3,000 images associated with it.
With a model this size, it would take me a month (or more) to check every surface for mistaken images vs. textures.
Is there some way I can isloate imported images, or purge them wholesale?
-
If you simply want to delete all Images in a model, then this one-liner will do it...
Open the Ruby Console and copy+paste the text + <enter>...m=Sketchup.active_model;m.start_operation('i',true);m.definitions.select{|d|d.image?}.each{|d|d.instances.each{|i|i.erase!}};m.commit_operation;It WILL erase ALL Images, so use with care - although it is one-step undo-able...
However, if you want just to Explode the Images in situ, then try this alternative...
m=Sketchup.active_model;m.start_operation('i',true);m.definitions.select{|d|d.image?}.each{|d|d.instances.each{|i|i.explode}};m.commit_operation;This leaves each of the Images made into a Material, applied onto a new rectangular face, which might merge with the geometry immediately behind the original location...
-
Thanks very much! That is very helpful.
There isn't any way to figure out which objects are images in outliner, is there? Or some other option to view them?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement