Small config tweaks, removed cam/light check, code cleanup
This commit is contained in:
1 parent
4617c47ad0
commit
b800e5a68b
6 files changed
+148
-43
No files matched your search
+8
-6
@@ -1,10 +1,11 @@
|
||||
"""Operators."""
|
||||
"""Operators for the individual tools."""
|
||||
|
||||
import bpy
|
||||
import json
|
||||
|
||||
class WTDGetOidForPath(bpy.types.Operator):
|
||||
import bpy
|
||||
|
||||
|
||||
class WTDGetOidForPath(bpy.types.Operator):
|
||||
bl_idname = "wtd_tools.getoidforpath"
|
||||
bl_label = "Get Oid For Open Scene"
|
||||
|
||||
@@ -14,10 +15,10 @@ class WTDGetOidForPath(bpy.types.Operator):
|
||||
actor_name="Flow",
|
||||
cmd_name="getoidforpath",
|
||||
args_json=json.dumps([]),
|
||||
kwargs_json=json.dumps({'path': bpy.data.filepath.replace('\\', '/')}),
|
||||
kwargs_json=json.dumps({"path": bpy.data.filepath.replace("\\", "/")}),
|
||||
) == {"FINISHED"}:
|
||||
result = json.loads(bpy.context.window_manager.kabaret_ipc_last_result)
|
||||
self.report({'INFO'}, str(result))
|
||||
self.report({"INFO"}, str(result))
|
||||
else:
|
||||
error = bpy.context.window_manager.kabaret_ipc_last_error
|
||||
return {"FINISHED"}
|
||||
@@ -26,5 +27,6 @@ class WTDGetOidForPath(bpy.types.Operator):
|
||||
def register() -> None:
|
||||
bpy.utils.register_class(WTDGetOidForPath)
|
||||
|
||||
|
||||
def unregister() -> None:
|
||||
bpy.utils.unregister_class(WTDGetOidForPath)
|
||||
bpy.utils.unregister_class(WTDGetOidForPath)
|
||||
Reference in new issue
Block a user