Script component returns to multiple params

Hi @eirannejad ,

in the old python script component I could return a list and it would automatically feed the list entries into params of the component (SDK mode).

In the new one I’m returning a list in the first param.

Is this intended behavior? And if so, how do i parametrically output to various outputs without manually setting the comma in return (such as return item1,item2) … maybe theres some python magic that allows me to do this but I’m unsure how.

see attached file with same code in both components:

script_editor_inconsistent_outputs.gh (13.5 KB)

1 Like

@sonderskovmathias

Return data like below so it is a tuple:

return tuple([c in data for c in output_names])

I will look into matching legacy behaviour:
RH-84235 Support expanding list returns into multiple outputs

1 Like

@sonderskovmathias I pushed a fix for this and created a series of regression tests:

1 Like

Wow Ehsan, that was fast. Amazing job as always. McNeel did good with getting you into the family.

1 Like

Thank you :smiley: I can send you a test build later today if you wanted to test the fix.

RH-84235 is fixed in Rhino 8 Service Release 14