ghPython: Reference an external source file?

is it possible to have the ghPython Grasshopper component process an external source file, just reference and not actually copied into the built in editor?


That should be possible as long as that external file is on the python search path in Rhino. Run EditPythonScript in Rhino and look at the search paths in the options for this dialog (it is available in the menu on this dialog.)

In addition to what Steve says, up-to-date versions of the ghPython component also have the local folder available as a search path, once the .ghx file is saved.

I hope this helps,

Giulio Piacentino
for Robert McNeel & Associates

1 Like