depth move - UI cahnge and changelog file
1.2.0: - feat: New depth move operator that handle both perspective and orthographic cam - feat: Realign, added drawing plane checkbox to autoset to Front after realign - UI: Reorganised realign panel - UI: Switched part of the sidebar items to columns intead of basic layout to gain space - doc: Added changelog file (moved list from readme) - doc: relative link to changelog and FR_readme in main readme
This commit is contained in:
+17
-11
@@ -139,17 +139,19 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||
# row = layout.row(align=False)
|
||||
## maybe remove cursor_follow icon that look like
|
||||
text, icon = ('Cursor Follow On', 'PIVOT_CURSOR') if context.scene.gptoolprops.cursor_follow else ('Cursor Follow Off', 'CURSOR')
|
||||
|
||||
layout.prop(context.scene.gptoolprops, 'cursor_follow', text=text, icon=icon)
|
||||
layout.prop(context.space_data.overlay, 'use_gpencil_onion_skin')
|
||||
col = layout.column()
|
||||
col.prop(context.space_data.overlay, 'use_gpencil_onion_skin')
|
||||
|
||||
|
||||
if context.object and context.object.type == 'GPENCIL':
|
||||
layout.prop(context.object.data, 'use_autolock_layers')
|
||||
layout.prop(context.object, 'show_in_front', text='X-ray')#default text "In Front"
|
||||
col.prop(context.object.data, 'use_autolock_layers')
|
||||
col.prop(context.object, 'show_in_front', text='X-ray')#default text "In Front"
|
||||
|
||||
## rename datablock temporary layout
|
||||
if context.object.name != context.object.data.name:
|
||||
box = layout.box()
|
||||
box = col.box()
|
||||
box.label(text='different name for object and data:', icon='INFO')
|
||||
row = box.row(align=False)
|
||||
row.operator('gp.rename_data_from_obj').rename_all = False
|
||||
@@ -157,24 +159,28 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||
|
||||
## Check base palette
|
||||
if not all(x in [m.name for m in context.object.data.materials if m] for x in ("line", "invisible")):
|
||||
box = layout.box()
|
||||
box = col.box()
|
||||
box.label(text='Missing base material setup', icon='INFO')
|
||||
box.operator('gp.load_default_palette')
|
||||
|
||||
else:
|
||||
layout.label(text='No GP object selected')
|
||||
col.label(text='No GP object selected')
|
||||
|
||||
|
||||
layout.prop(context.scene.gptoolprops, 'edit_lines_opacity')
|
||||
col.prop(context.scene.gptoolprops, 'edit_lines_opacity')
|
||||
|
||||
row = col.row(align=True)
|
||||
## realign / reproject
|
||||
layout.operator('gp.realign')
|
||||
# layout.operator('gp.batch_reproject_all_frames') # text=Batch Reproject
|
||||
row.operator('gp.realign', icon='AXIS_FRONT')
|
||||
## move in depth
|
||||
row.operator('object.depth_proportional_move', text='Depth move', icon='TRANSFORM_ORIGINS')
|
||||
|
||||
## col.operator('gp.batch_reproject_all_frames') # text=Batch Reproject # added to context menu
|
||||
## Create empty frame on layer (ops stored under GP_colorize... might be best to separate in another panel )
|
||||
layout.operator('gp.create_empty_frames', icon='DECORATE_KEYFRAME')
|
||||
col.operator('gp.create_empty_frames', icon='DECORATE_KEYFRAME')
|
||||
|
||||
## File checker
|
||||
row = layout.row(align=True)
|
||||
row = col.row(align=True)
|
||||
row.operator('gp.file_checker', text = 'Check file', icon = 'SCENE_DATA')
|
||||
row.operator('gp.links_checker', text = 'Check links', icon = 'UNLINKED')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user