From 2fb5a217f5ba3b9a901295a024c26c42cc69ac59 Mon Sep 17 00:00:00 2001 From: Mahrkeenerh Date: Fri, 10 Nov 2023 10:36:52 +0100 Subject: [PATCH] Fix Multi-execute node --- extended_scripting/Program/Multi Execute.py | 7 ++++--- extended_scripting/package_info.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/extended_scripting/Program/Multi Execute.py b/extended_scripting/Program/Multi Execute.py index 9d9032d..34bab6f 100644 --- a/extended_scripting/Program/Multi Execute.py +++ b/extended_scripting/Program/Multi Execute.py @@ -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 diff --git a/extended_scripting/package_info.json b/extended_scripting/package_info.json index 803f3f9..31a43c0 100644 --- a/extended_scripting/package_info.json +++ b/extended_scripting/package_info.json @@ -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" } \ No newline at end of file