ghPython: Reference an external source file?


#1

Hi,
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?

cu
Flo


(Steve Baer) #2

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.)


(Giulio Piacentino) #3

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

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