Hi all,
Where can I find a component guide with all ghpythonlib.components?
I want to see documentation on what arguments and types are needed when using each component in python nodes.
Is inside python nodes the only way? (see attached).
Instead of trying to wrangle node-in-code (i.e. ghpythonlib), I’d use the API - also called rhinocommon -, for which there is a documentation.
Example:
import Rhino.Geometry as rg
xval, zval, yval, outlist = ([] for _ in range(4))
for pt in points:
xval.append(pt.X)
yval.append(pt.Y)
zval.append(pt.Z)
for (x, y, z) in zip(xval, yval, zval):
if z == 0:
pt = rg.Point3d(x, y, z)
outlist.append(pt)