Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39535

C# - assigning color to points according to distances moved?

$
0
0

@nesfut wrote:

i’m trying to assign colors to points moved inside a c# component in grasshopper.
i would like to assign different color depending on the distance each point moved. (inside the same c# component)
i’ve tried using “AddPoint(Point3d, Color)” but it’s giving me "Error (CS0120): An object reference is required for the non-static field, method, or property"
could anyone advise me if “AddPoint(Point3d, Color)” would be the right one to use?
and if so, how i can fix this error?
if not, what would be better options?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 39535

Trending Articles