Grasshopper

algorithmic modeling for Rhino

So I am just playing around with the gradient node and noticed something strange.

If I double click one of the control points in the gradient you can set the ColorLeft and ColorRight.

If I do that and pick for example white for ColorLeft and black for ColorRight, then the output is not RGB values anymore for pure white, but the string "white", thus making any calculations using the values impossible.

Is there a way to:

a) have the gradient always output numerical values

or

b) convert rbg values mixed with strings of pure colors (white, black, etc.) to only numerical values

Thanks, Armin.

Views: 2787

Replies to This Discussion

Ok, so it gets stranger still.

It appears that only the FIRST color gets output as a string, but all subsequent colors get output as values, regardless if the color in the gradient editor is set using a value or a name.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service