From 5a3c6fa4dd0836fd96687a8281b9a49230ce0bb8 Mon Sep 17 00:00:00 2001 From: pullusb Date: Fri, 12 Jan 2024 17:02:46 +0100 Subject: [PATCH] Remove UI for WIP layer parent --- __init__.py | 2 +- interpolate_strokes/properties.py | 6 +++--- ui.py | 11 ++++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/__init__.py b/__init__.py index aaa781f..76ed4b3 100755 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,7 @@ bl_info = { "name": "gp interpolate", "author": "Christophe Seux, Samuel Bernou", - "version": (0, 3, 0), + "version": (0, 4, 0), "blender": (3, 6, 0), "location": "Sidebar > Gpencil Tab > Interpolate", "description": "Interpolate Grease pencil strokes over 3D", diff --git a/interpolate_strokes/properties.py b/interpolate_strokes/properties.py index c88bb72..38afea0 100644 --- a/interpolate_strokes/properties.py +++ b/interpolate_strokes/properties.py @@ -17,10 +17,10 @@ class GP_PG_interpolate_settings(PropertyGroup): method : EnumProperty( name='Method', items= ( - ('BONE', 'Bone', 'Pick an armature bone and follow it', 0), - ('GEOMETRY', 'Geometry', 'Directly follow underlying geometry', 1) , + ('GEOMETRY', 'Geometry', 'Directly follow underlying geometry', 0), + ('BONE', 'Bone', 'Pick an armature bone and follow it', 1), ), - default='BONE', + default='GEOMETRY', description='Select method for interpolating strokes' ) diff --git a/ui.py b/ui.py index 20d19b5..a4a7fae 100755 --- a/ui.py +++ b/ui.py @@ -35,8 +35,8 @@ class GP_PT_interpolate(bpy.types.Panel): # row.operator("gp.interpolate_stroke_simple", text="", icon=next_icon).next = True - col.prop(settings, 'method', text='Method') col.prop(settings, 'use_animation', text='Animation') + col.prop(settings, 'method', text='Method') if settings.method == 'BONE': col = layout.column(align=True) @@ -59,10 +59,11 @@ class GP_PT_interpolate(bpy.types.Panel): if settings.mode == 'FRAME': col.prop(settings, 'padding') - col = layout.column() - col.label(text='Layer Parent') - col.operator('gp.parent_layer', text='Direct Parent').direct_parent = True - col.operator('gp.parent_layer', text='Empty Parent').direct_parent = False + ## Parent still full WIP + # col = layout.column() + # col.label(text='Layer Parent') + # col.operator('gp.parent_layer', text='Direct Parent').direct_parent = True + # col.operator('gp.parent_layer', text='Empty Parent').direct_parent = False classes = ( GP_PT_interpolate,