algorithmic modeling for Rhino
Hi guys!
I have a problem when importing ghpythonlib.components into python. You know, the ghcomp would not work unless I set the type hints of inputs correctly. But sometimes in the middle of a script, I need to use ghcomp, and the input arguments are returned from other functions(eg. rhinoscriptsyntax functions). The type of the returned arguments is guid or something else and it would cause the ghcomp fail(return None). I know, I can split the whole script into pieces and write them in more than one 'python' components so that I can set type hint between components, but I want to keep the script as a whole. So can I set type hint in the middle of a script so that I can use ghcomp wherever I want. Or, are there any other methods to solve this problem.
Thank you!
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by