Node in Code

Hi all,
I am trying to use grasshopper components in Python for Grasshopper, tried importing Pop2d and Voronoi 2d from points… not just this but it would be helpful to see how to separate and achieve multiple outlets. for example … Pull points has 2 outs 1) P - closest points
2) D - distance

how to extract such outputs …???

Hi Shridhar,

If the grasshopper component you are trying to call has multiple outputs, access them as tuple elements (because that’s what that specific grasshopper component function returns - a tuple):

import ghpythonlib.components as ghc

p, d = ghc.PullPoint(pt,g)

Hi Djordje,
thank u for replying . works fine.