From ee9b40d0b52cac29c2a5c426e5ed844f00905112 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Tue, 17 Mar 2020 18:11:28 +0200 Subject: [PATCH] blender plugin --- SDK/Python/blender.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/SDK/Python/blender.py b/SDK/Python/blender.py index f934a8b92..b5a74504e 100644 --- a/SDK/Python/blender.py +++ b/SDK/Python/blender.py @@ -1,3 +1,9 @@ +bl_info = { + "name": "FTL plugin", + "blender": (2, 80, 2), + "category": "Import-Export", +} + import bpy import numpy as np from mathutils import Matrix, Vector @@ -193,7 +199,7 @@ def render_stereo(camera, baseline=0.15): camera.location = location_old finally: - bpy.context.scene.camera = camera + bpy.context.scene.camera = camera_old d_max = max(np.max(depthL), np.max(depthR)) pose = np.identity(4,dtype=np.float32) @@ -245,7 +251,7 @@ class FTL_Options(bpy.types.PropertyGroup): import ftl class FTL_OT_Operator(bpy.types.Operator): bl_idname = "scene.ftl_operator" - bl_label = "FTL Writer" + bl_label = "FTL Operator" def execute(self, context): options = context.scene.ftl_options @@ -289,7 +295,7 @@ class FTL_OT_Operator(bpy.types.Operator): return {'FINISHED'} class FTL_PT_Panel(bpy.types.Panel): - bl_label = "FTL Options" + bl_label = "FTL Export" bl_idname = "FTL_PT_ftl" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' -- GitLab