Remove UI for WIP layer parent

master
pullusb 2024-01-12 17:02:46 +01:00
parent 8152b8a7fd
commit 5a3c6fa4dd
3 changed files with 10 additions and 9 deletions

View File

@ -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",

View File

@ -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'
)

11
ui.py
View File

@ -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,