Change lacing of Python Script node without custom node

How to run this script with cross product lacing without using custom nodes?

It is not possible to change the lacing or list levels in a Python node. You’ll either have to modify the code to deal with the desire lacing/list structure, or you’ll have to wrap the Python in a custom node.

ok thanks to you, can i ask for another question please ?

How can i add a toggle before python script , i mean prevent python to run until bool = true

Use an if statement in your python, then put your code inside it and use a boolean input to the python node as the if/else condition.

2 Likes