Tutorial: creating a Grasshopper component with the Python GHPY compiler

ghpy
compiler
gha
unhandled
python

(Giulio Piacentino) #47

Hi @sgaray

if you are doing this from an event handler, then it should be fine. Never do this within a solution.

Just keep in mind that you’ll need to use standard Grasshopper input parameters, not Hint-based scripting parameters. Compile a sample component with the Hints that you need, then choose to copy the code. It will show exactly what types are expected.

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com


(Santiago Garay) #48

@piac
I was doing it from the solution itself, will follow your suggestion.Thanks!


(Giulio Piacentino) #52

A post was split to a new topic: Problems creating GHPY files


(Giulio Piacentino) #53

2 posts were split to a new topic: Documentation strings not used in GH_Component SDK mode