Why I can’t execute my script via Logic Node Editor

Why does an error occur when running a script using a “Run Python Code” node? For some reason, in the error description my script is called a module

The error ask you to define what function you want to run from your script.
Let’s say for example, in your script you have something like
def mainScript():
you must specify that function to run

1 Like

Yes, It works! Thanks!

1 Like