How To Preview a Dynamic Set of Colors?

I’ve made this little tool to change panels’ colours based on random colour input. However, the preview is limited to the amount of panels, and the panels either have to be placed, named and referenced manually or manually placed within a group, what limits preview capabilities.

I, unfortunately, can’t use any external plugins in my workflow, so I’m restricted to what ships with Grasshopper.

Maybe there’s a better method or even a built-in one you know of? Thanks in advance.

random colours panels preview.gh (12.7 KB)

A while ago I used this list of easily distinguishable colors. I added black and white so I ended up with 22 colors which is enough for most things I do.

List of 20 Simple, Distinct Colors | Alexandr Trubetskoy

'#e6194b'
'#3cb44b'
'#ffe119'
'#4363d8'
'#f58231'
'#911eb4'
'#46f0f0'
'#f032e6'
'#bcf60c'
'#fabebe'
'#008080'
'#e6beff'
'#9a6324'
'#fffac8'
'#800000'
'#aaffc3'
'#808000'
'#ffd8b1'
'#000075'
'#808080'
'#ffffff'
'#000000'

I didn’t quite get your problem.

But you could easily tell a chatbot to create a python script to name, color and place panels as you want…

Is this what you need?

Wondering what you do with so many colors and many of them almost the same…

Too bad Grasshopper doesn’t have swatches. And before anyboday says anything, no the Swatch component isn’t a swatch. It’s just a colour picker.

Can you explain what swatches are?

In any way, these are legends:
image

They are mechanical watches made by a Swiss company founded in 1983 by Ernst Thomke, Elmar Mock, and Jacques Müller…

:smirking_face:

No. They are colour palettes. Used for comparing colours or ensuring colour consistency in the traditional sense. In the digital era, they are colour preselections that ensure colours within a colour space or match print colour to screen colour. Just generally, they are a user-defined selection of colours.

Fine, color palettes in Grasshopper created with the Legend component… :slight_smile:

This Swatch would almost act as a color swatch

Yeah, but a legend explains what colours are supposed to mean, or gives names to colours. I am speaking here of terminology.

A swatch would be like going into the colour picker an picking five colours that you like and saving them to a colour library. The swatch component would then give you access to those five colours and only those five colours in a drop down, depending on the colour library the swatch is displaying. At least this is what a swatch is in the Adobe interpretation.

Since I need a list of distinguishable colours quite often, I made a user object (just a list of strings) based on your post. Thanks for the reference.

Colour Set.ghuser (2.0 KB)

I’m trying to not use AI for any of my projects, hence the reason I reached out to the forum. I wondered if anyone had a similar problem and came up with a proper solution.

Using the Legend component as @martinsiegrist has shown, seems a reasonable solution for display.

Thank you for pointing it out, I totally missed it…

Well how do you know that the solutions in the forum are not using AI?

I don’t. But at least there’s a chance (whereas there would have been none had I used AI directly :woozy_face:). It’s also a free chance to help someone else out in the future.

Well, if you hadn’t posted, no one would have used AI because of your post. By posting, you’ve actually prompted me and potentially many others to use AI.

If your goal is to discourage people from using AI, then the most rational choice would have been not to post at all.

But you still needed help and posted any ways. Kind of hypocritical, don’t you think?

Also you forgot to say thanks.

For my part, it was a simple web search some years ago…

What are you even on about man? People aren’t allowed to ask grasshopper questions on the McNeel Forums because it promotes AI? Is there a gas leak in your room or something?

FWIW, it may be against the forum terms of service to post AI-generated content:

But McNeel have not elaborated upon/updated these terms since LLM/GPT’s became popular :man_shrugging: