sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Images vs. textures?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    3 Posts 2 Posters 336 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      lesourdsville
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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...

        TIG

        1 Reply Last reply Reply Quote 0
        • L Offline
          lesourdsville
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement