Skip to content

Commit

Permalink
Fix Multi-execute node
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahrkeenerh committed Nov 10, 2023
1 parent de93385 commit 2fb5a21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions extended_scripting/Program/Multi Execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ def on_create(self, context):
self.add_dynamic_execute_input()
self.add_dynamic_execute_output()

def on_dynamic_socket_add(self, socket):
socket.python_value = self.code

def evaluate(self, context):
self.code = f"{self.outputs[0].python_value}"
for output in self.outputs[1:-1]:
self.code += f"\n{output.python_value}"

# save code to all dynamic inputs
for inp in self.inputs[1:-1]:
inp.python_value = self.code
2 changes: 1 addition & 1 deletion extended_scripting/package_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "Extended Scripting",
"description": "Extends Serpens scripting capabilities with new nodes.",
"author": "Mahrkeenerh",
"version": "1.3.0",
"version": "1.3.1",
"wiki": "https://github.com/Mahrkeenerh/SerpensExtendedScripting"
}

0 comments on commit 2fb5a21

Please sign in to comment.