Add disable use light in file checker
1.9.1 - fix: add error handling on palette linker when blend_path isn't valid anymore - added: file checker entry, Disable all GP object `use lights` (True by default in addon pref `checklist`) - added: WIP of Batch reproject all on cursor. - No UI. In search menu `Flat Reproject Selected On cursor` (idname `gp.batch_flat_reproject`)
This commit is contained in:
+67
-16
@@ -3,6 +3,13 @@ from .utils import get_addon_prefs
|
||||
import bpy
|
||||
from pathlib import Path
|
||||
from bpy.types import Panel
|
||||
from bpy.props import (
|
||||
IntProperty,
|
||||
BoolProperty,
|
||||
StringProperty,
|
||||
FloatProperty,
|
||||
EnumProperty,
|
||||
)
|
||||
|
||||
## UI in properties
|
||||
|
||||
@@ -420,6 +427,8 @@ def palettes_path_ui(self, context):
|
||||
col.prop(pl_prop, 'custom_dir', text='Custom Dir')
|
||||
# if not pl_prop.custom_dir or pl_prop.show_path:
|
||||
# col.prop(pl_prop, 'custom_dir', text='Custom Dir')
|
||||
|
||||
# col.operator('gptb.palette_version_update', text='Update Palette Version') # when update is ready
|
||||
|
||||
|
||||
def palettes_lists_ui(self, context, popup=False):
|
||||
@@ -589,7 +598,16 @@ class GPTB_PT_tools_grease_pencil_interpolate(Panel):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
settings = context.tool_settings.gpencil_interpolate
|
||||
layout.use_property_split = True
|
||||
# settings = context.tool_settings.gpencil_interpolate # old 2.92 global settings
|
||||
## access active tool settings
|
||||
# settings = context.workspace.tools[0].operator_properties('gpencil.interpolate')
|
||||
settings = context.workspace.tools.from_space_view3d_mode('PAINT_GPENCIL').operator_properties('gpencil.interpolate')
|
||||
|
||||
## custom curve access (still in gp interpolate tools)
|
||||
interpolate_settings = context.tool_settings.gpencil_interpolate
|
||||
# ex : interpolate_settings.interpolation_curve.curves[0].points[1].location
|
||||
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Interpolate Strokes")
|
||||
@@ -599,29 +617,62 @@ class GPTB_PT_tools_grease_pencil_interpolate(Panel):
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Options:")
|
||||
col.prop(settings, "interpolate_all_layers")
|
||||
|
||||
# col.prop(settings, "interpolate_all_layers") # now the enum "layers"
|
||||
gpd = context.gpencil_data
|
||||
if gpd.use_stroke_edit_mode:
|
||||
col.prop(settings, "interpolate_selected_only")
|
||||
col.prop(settings, "layers")
|
||||
col.prop(settings, "flip")
|
||||
col.prop(settings, "smooth_factor")
|
||||
col.prop(settings, "smooth_steps")
|
||||
|
||||
|
||||
'''## Sequence Options
|
||||
seq_settings = context.window_manager.operators.get('GPENCIL_OT_interpolate_sequence')
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Sequence Options:")
|
||||
col.prop(settings, "step")
|
||||
col.prop(settings, "type")
|
||||
if settings.type == 'CUSTOM':
|
||||
# TODO: Options for loading/saving curve presets?
|
||||
col.template_curve_mapping(settings, "interpolation_curve", brush=True,
|
||||
use_negative_slope=True)
|
||||
elif settings.type != 'LINEAR':
|
||||
col.prop(settings, "easing")
|
||||
if not seq_settings:
|
||||
# col.label(text='Launch Interpolate Sequence Once')
|
||||
# col.operator('gpencil.interpolate_sequence',text='Interpolate Sequence Once')
|
||||
col.label(text='Interpolate sequence', icon='INFO')
|
||||
col.label(text='must be launched')
|
||||
col.label(text="once per session")
|
||||
col.label(text="to expose it's properties")
|
||||
return
|
||||
|
||||
if settings.type == 'BACK':
|
||||
layout.prop(settings, "back")
|
||||
elif settings.type == 'ELASTIC':
|
||||
col.prop(seq_settings, "step")
|
||||
col.prop(seq_settings, "layers")
|
||||
col.prop(seq_settings, "interpolate_selected_only")
|
||||
col.prop(seq_settings, "flip")
|
||||
col.prop(seq_settings, "smooth_factor")
|
||||
col.prop(seq_settings, "smooth_steps")
|
||||
col.prop(seq_settings, "type")
|
||||
if seq_settings.type == 'CUSTOM':
|
||||
# TODO: Options for loading/saving curve presets?
|
||||
col.template_curve_mapping(interpolate_settings, "interpolation_curve", brush=True,
|
||||
use_negative_slope=True)
|
||||
elif seq_settings.type != 'LINEAR':
|
||||
col.prop(seq_settings, "easing")
|
||||
|
||||
if seq_settings.type == 'BACK':
|
||||
layout.prop(seq_settings, "back")
|
||||
elif seq_settings.type == 'ELASTIC':
|
||||
sub = layout.column(align=True)
|
||||
sub.prop(settings, "amplitude")
|
||||
sub.prop(settings, "period")
|
||||
sub.prop(seq_settings, "amplitude")
|
||||
sub.prop(seq_settings, "period")
|
||||
'''
|
||||
|
||||
|
||||
## recreate property group from operator options
|
||||
# inspect context.window_manager.operators['GPENCIL_OT_interpolate_sequence']
|
||||
# separate options from single interpolation and sequence interpolation
|
||||
|
||||
# class GPTB_PG_interpolate_sequence_prop(bpy.types.PropertyGroup):
|
||||
# interpolate_selected_only : BoolProperty(
|
||||
# name="Selected Only",
|
||||
# description="",
|
||||
# default=True,
|
||||
# options={'HIDDEN'})
|
||||
|
||||
def interpolate_header_ui(self, context):
|
||||
layout = self.layout
|
||||
|
||||
Reference in New Issue
Block a user