I’m trying to write a
C_question.gh (8.1 KB)
component, parses Python code to extract inputs/outputs, renames or adds the necessary parameters, and injects the code into the component.
The main issues I’m facing are:
- The code is not being written into the IronPython2 component.
- When I rename the inputs and outputs, I lose the ability to automatically set their parameter types (e.g.
number,int,integer, etc.).
Is there a way to achieve this while preserving or restoring the parameter types?