Addtextdot grasshopper python

grasshopper python does not support add text dot?
I find add text dot to list of point often very helpful, to understand the list organization, but seems grasshopper python dose not support it ,any other way to do it ?

Try this code:

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

PT_COORD = rs.PointCoordinates(x)

sc.doc = Rhino.RhinoDoc.ActiveDoc 
a = rs.AddTextDot("1", PT_COORD)
sc.doc = ghdoc

Note that a text dot will be added to the Rhino document each time this script runs.

Have you tried the Point List component? It is quite helpful for visualizing lists (or trees) of points.


How about this? (5.2 KB)

– Dale

point list only give list sequence of the first tree? if there is list within list [ [a,b,c], [d,e,f] ] if does not tell the secondary list sequence. Maybe I was wrong?

If you pass a DataTree to the Point List component, it displays each branch in a different color.

(Used grasshopper file from one of your other questions)

Q_python in (14.9 KB)


For some sort of “general” approach … try to translate the attached (there’s no auto C# to P conversion): (116.1 KB)

For some sort of “dynamic” solution the most important part is how to remove the previous Dots (say: in cases where many colors, heights and the likes are used).