-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3912c35
commit f255dda
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import bpy | ||
from ..base_node import SN_ScriptingBaseNode | ||
|
||
|
||
class SN_MultiExecuteNode(bpy.types.Node, SN_ScriptingBaseNode): | ||
|
||
bl_idname = "SN_MultiExecuteNode" | ||
bl_label = "Multi Execute" | ||
node_color = "PROGRAM" | ||
|
||
def on_create(self, context): | ||
self.add_execute_input() | ||
self.add_execute_output() | ||
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "Extended Scripting", | ||
"description": "Extends the Serpens scripting capabilities with new nodes.", | ||
"description": "Extends Serpens scripting capabilities with new nodes.", | ||
"author": "Mahrkeenerh", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"wiki": "https://github.com/Mahrkeenerh/SerpensExtendedScripting" | ||
} |
Binary file not shown.