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

    Hexnumbers for colors

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 5 Posters 2.2k 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.
    • L Offline
      lapx
      last edited by

      Does anyone know if there's a way to input hexnumbers for color vs RGB?

      1 Reply Last reply Reply Quote 0
      • A Offline
        anglaret
        last edited by

        Link Preview Image
        Hex-to-RGB Color Converter

        favicon

        (www.javascripter.net)

        Try this, you will find on the web a lot of simple softs
        Marc

        1 Reply Last reply Reply Quote 0
        • Alan FraserA Offline
          Alan Fraser
          last edited by

          I can't see that you can do that, because you can't edit anything about a colour until you have actually applied it. I guess that what you would want to do is actually apply a Hex colour straight off the palette. The only feasible way of doing this at the moment would be to create your own library of colours with Hex names.

          We used to have this at FormFonts, but abandoned it because V6 lists the materials in a library alphabetically (earlier versions had an option to list them in the order they were added to the library). With Hex colours, this means they are all over the place...you can't tell a very dark brown from a very dark blue, because they are not in context with their lighter variants, so simply look off-black.

          I guess you could name them with a numeric prefix, such as 026 FF02A1. That would probably work.

          3D Figures
          Were you required to walk 500 miles? Were you advised to walk 500 more?
          You could be entitled to compensation. Call the Pro Claimers now!

          1 Reply Last reply Reply Quote 0
          • T Offline
            todd burch
            last edited by

            A Ruby script could do this, no problem.

            To do this manually from the Ruby console, enter these commands. First select the entity you want a particular color, then do this:

            
            ent = Sketchup.active_model.selection[0]  
            
            

            Then, make your new color, with the 6 character hex value in quotes:

            
            color = Sketchup;;Color.new("#0DEAD0")
            
            

            Then, assign the color to your object:

            
            ent.material = color 
            
            

            Simple as that! If you want to also paint the back of the face, enter

            
            ent.back_material = color 
            
            

            Todd

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              If you have any kind of option to show colours entered by their hex values (like with a background of a webpage or this PS you just discovered), just paint any face in SU with an arbitrary colour and when in edit mode, you can always click on these displayed colours with the eye dropper tool of SU (yes, outside of SU).

              Well, this is a workaround of course (and you won't get the hex values in SU) but you can match any colour given in hex outside SU.

              Gai...

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

                The reason why I thought it made since was because sometimes colors are listed this way and it seems to make sense to enter info in 1 box vs 3. Photoshop has this flexibilty I just recently discovered.

                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