base addon

This commit is contained in:
WALKINGTHEDOG\wabe committed 2026-10-07 13:20:13 +02:00
commit 732a647572
4 files changed
+112

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
"""Operators."""
import bpy
class WTDBuildOp(bpy.types.Operator):
bl_idname = "wtd_tools.build"
bl_label = "Build"
def execute(self, context):
if bpy.ops.kabaret.cmds_call(
actor_name="Flow",
cmd_name="action_needs_dialog",
args_json=json.dumps([oid]),
) == {"FINISHED"}:
result = json.loads(bpy.context.window_manager.kabaret_ipc_last_result)
else:
error = bpy.context.window_manager.kabaret_ipc_last_error
return {"FINISHED"}
def register() -> None:
bpy.utils.register_class(WTDBuildOp)
def unregister() -> None:
bpy.utils.unregister_class(WTDBuildOp)