sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Color to Image texture?

    Scheduled Pinned Locked Moved Plugins
    7 Posts 5 Posters 1.0k Views 5 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.
    • J Offline
      Jim
      last edited by

      I don't suppose there exists a plugin to take an in-model (solid) color material, make an external image file of the same color, then use that image and replace the in-model color with the texture material?

      Hi

      1 Reply Last reply Reply Quote 0
      • X Offline
        xrok1
        last edited by

        you can right click a colored (painted) face and select make unique texture, it will ask what size image you want ie. 1024x768. i'm not sure where SU saves the corresponding image file though. anyone know?

        “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

        http://www.Twilightrender.com try it!

        1 Reply Last reply Reply Quote 0
        • X Offline
          xrok1
          last edited by

          ah, here we go right click on it here, then save where ever you want. of course you have to right click the face and select make unique texture first.


          Capture1.JPG

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

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

            You can easily get the material's color's RGB.
            You then need to write a png file with those values.
            Import it in as a texture for that material...
            There are image writing modules for Ruby with stuff like GD2 ?
            😕

            TIG

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              It is available as built in tool of SketchUp. But it is not expoed in the API. So I don't think a plugin exists. But you can do it natively. Just right click on a single face with a color material applied to it. And choose "Make Unique Texture". That turns it into an image material. Then you can open it in photoshop.

              Chris

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • X Offline
                xrok1
                last edited by

                😳 sorry if this was a coding question.

                “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                http://www.Twilightrender.com try it!

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @tig said:

                  You can easily get the material's color's RGB.
                  You then need to write a png file with those values.
                  Import it in as a texture for that material...
                  There are image writing modules for Ruby with stuff like GD2 ?
                  😕

                  PNG files are not trivial to deal with. If anyone are knows of a lightweight lib to use with SU Ruby then I'd be very interested.

                  I just wrote my own BMP reader for a plugin I'm working on. A BMP writer would be easy - but the downside is the filesize... 😕

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  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