After compiling ghpython, variable hint goes wrong, "Marshalling signal parameter"


(David Jonghyock Lee) #1

Hi, everyone. I am compiling my python script. After compiling the ghpython script, input variable’s description changed as shown in the image. (“Marshalling signal parameter”)

Does anybody know how to make a new component with variable descriptions similar to a normal component?
(Icon for type + description)

Input & Output description in ghpython

Input & Output after compiling

Input & Output description of a normal compoenet

(Giulio Piacentino) #2

If you want that, the simplest way is to program your component to have input “Pl” with a “Type Hint” of Polyline.

This is because, if you use the RhinoScript one, Grasshopper will have to be informed that the input is special, and needs to marshal objects to the Grasshopper document.



Giulio Piacentino
for Robert McNeel & Associates