Hi,
How can I assign two values to the output tabs A and B of the Python Script Editor in the “Script Instance template”?
"""Grasshopper Script Instance"""
import System
import Rhino
import Grasshopper
import rhinoscriptsyntax as rs
import math
class MyComponent(Grasshopper.Kernel.GH_ScriptInstance):
def RunScript(self, x: int, y: int):
# Calculate results
result1 = x + y
result2 = x * y
# Assign results to output variables
A = result1 # First output
B = result2 # Second output
2 posts - 2 participants