Hexnumbers for colors
-
Does anyone know if there's a way to input hexnumbers for color vs RGB?
-
http://www.javascripter.net/faq/hextorgb.htm
Try this, you will find on the web a lot of simple softs
Marc -
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.
-
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
-
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.
-
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.
Advertisement