Wish: Eyedropper Tool

Would be cool if you could have a tool that would take a color from an imported image and apply it to an object, curve, or hatch.

-Paul

When you click the Display Color dropdown, you get an option called ‘Other’

In the Select Color dialog upper right corner is the eye dropper tool…

2 Likes

True, but is there a way to access this via the command line?

I’m a user with low vision so it’s less efficient for me to rely on small icons and the visual interface of the color picker…

Can you unmark this as the solution, please?

I think it was @wim who marked it as solution.

I only replied to the topic and cannot mark a post as solution in your topic.

I generally don’t mark posts in threads as a solution (we have an in-house feature for dealing with such so I really don’t mind threads being solved or not) but I unchecked that now…

You’ll probably need to provide quite a bit more information about this. Moving this thread to “Developer” for now…
-wim

Old topic of yours…

PowerToys has an eyedropper / color selector

Oh, well that’s embarrassing…

Why?

Oh, I thought it had been answered. I’ll experiment with PowerToys and report back! Thanks for that tip!

For any developers who look at this thread what I’m really wanting is just the ability to type “Eyedropper” and then be able to pick a color from an image and apply it to a curve, object, or hatch.

As an architectural designer i use Rhino 2D as much as 3D and like to keep things within Rhino. (The Adobe interface is terrible for people with low vision, so I avoid it). Sometimes I might drop in an image (like in my earlier thread) and want to grab a color from it. If I want to do this, say, seven or eight times, the color picker can start to feel slow and cumbersome.

It’s maybe not a workflow that Rhino was initially intended for, but I do have a lot of friends in architecture who like to do their drawings and graphics in Rhino, and so having more efficient and sophisticated 2D capabilities in my mind would really elevate the program in general (see earlier threads about text tools, a pen-style tool similar to illustrator, etc.)

But for the purposes of this thread, i’m really just looking for the ability to efficiently grab color from an image and apply it to an object. I could see this being useful for rendering and stuff too if you want to use a reference image and keep things quick and dirty.

1 Like

I think you could create a script / macro which modifies the color of a selected object.

You can paste the color from the powertools eyedropper.

Ideally there would be an eyedropper available through the command line…

The spacesin the rgb value from eyedropper is causing problems and you’d almost have to type the numbers by hand.

Python opencv has an eyedropper…

Hi @pdfaze, you might try attached python script to get started:

EyeDropper.py (926 Bytes)

To run this as a command, create a new alias using:

_Options > Rhino Options > Aliases > New

Then use eg. “Eyedropper” as alias and this as Command Macro:

! _-RunPythonScript "C:\YourPathToTheScript\EyeDropper.py"

note that you’ll need to write the correct path in above macro, where you’ve saved the script to.

_
c.

1 Like