Multiple Outputs in Python Node

Is there a way to add additional Outputs for the Python node much like you can for the Inputs? I can add multiple inputs and the node will say IN[0], IN[1], etc. Can you have OUT[0] AND OUT[1]?

I dont believe so. The typical approach is to put all inputs into a list and assign to out, then index those afterwards in a code block.

There can only be one output, and lists with a subsequent code block or get item at index node is a good method of handling multiple outputs. Personally I prefer a dictionary over a list as they are faster.

The other option for multiple outputs is a custom node, which allows far more than what you can get from the Python node in terms of input controls, user messaging, documentation, and code management in various environments.

3 Likes