sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Colouring components

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    2 Posts 2 Posters 154 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.
    • M Offline
      mzarja
      last edited by

      Hello!
      I need an advice. I'm creating a house visualisation in SketchUp Pro. I have various components (furniture) and I need to set one colour to all of them. Is there any way of doing that without changing colour to each and every component manually, like not colouring all component faces separately?
      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        @mzarja said:

        Hello!
        I need an advice. I'm creating a house visualisation in SketchUp Pro. I have various components (furniture) and I need to set one colour to all of them. Is there any way of doing that without changing colour to each and every component manually, like not colouring all component faces separately?
        Thanks in advance!

        This one-liner will color ALL component instances RED.

        Sketchup.active_model.definitions.each{|cd| next if (cd.group?||cd.image?);cd.instances.each{|e| e.material='red'}}
        
        

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        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