Lorenzo Bicocchi
unread,Sep 11, 2025, 5:04:21 AM (13 days ago) Sep 11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to VI-Suite
Hi there,
I have the VI-Suite 0.7 add-on installed in Blender 4.4. I am trying to run the simulation (the one that starts when you click “Calculate”) of the VI Shadow Map node, but via script in Blender's text editor.
Despite numerous attempts, there seems to be a bug in the bpy.ops.node.shad() operator, because the script runs, but the simulation doesn't start. Can anyone help me solve this? I am attaching the latest script I created (with the help of AI):
import bpy
# Find the node tree and the shadow map node
node_tree_name = "VI-Suite Nodes"
node_name = "VI Shadow Map"
node_tree = bpy.data.node_groups.get(node_tree_name)
if not node_tree:
print(f"Error: Node tree '{node_tree_name}' not found.")
else:
sim_node = node_tree.nodes.get(node_name)
if not sim_node:
print(f"Error: Node '{node_name}' not found in the node tree.")
else:
# Create a temporary context override
with bpy.context.temp_override(node=sim_node, node_tree=node_tree):
# Call the operator within the temporary context
bpy.ops.node.shad()
The script runs, but the message from the Toggle System Console is:
ERROR (wm.operator): C:\Users\blender\git\blender-v440\blender.git\source\blender\windowmanager\intern\wm_event_system.cc:1645 wm_operator_invoke: invalid operator call 'NODE_OT_shad'
Thank you in advance!!
Lorenzo