Get the value of Grasshopper component from RhinoPython

Hi,

I am trying to program to set values in RhinoPython and get the resulting values calculated in Grasshopper.However, I don’t know which method to use to get the values of Grasshopper components.What should I do?

test.py (474 Bytes)
test.gh (9.4 KB)

Self resolved.
I worked around the problem by using the GhPython component to output the number component values to a txt file and reading it in.

hello 春日_拓実,
same problem here. i want to send data to grasshopper and to get back the computed solution with a single pythonscript. may you explain, how your solution is working?

best, heiko

Will this method work? Calling grasshopper components from within Rhino.Python:

1 Like

Thanks for your reply. i’ll take a try. is this also usable with addon components (dendro in my case)

Yes, it should work for GH plugins also.

sounds promising, i will follow up on it!