Line color not displaying in Dynamo


I am trying to color a list of lines using the GeometryColor.ByGeometryColor, but it returns the following error: “Warning: GeometryColor.ByGeometryColor expects argument type(s) (Autodesk.DesignScript.Geometry.Geometry, DSCore.Color), but was called with (Autodesk.DesignScript.Geometry.Line, Function).”

What is the correct way/ node for coloring lines. (I am hiding the previews of the other nodes)

Hi @Nuraan,
Welcome to the Dynamo community.
What you are doing is extracting the red component of a color.
Instead you need to use the Color.ByARGB node as shown below

Or alternatively, you can install the Clockwork package and use the color nodes from it.


The color node you’re using actually just extracts the red component of another color node.

Here are two options:


Thanks so much! I used the Color Palette node :slight_smile:

1 Like