better cam ref UI and clear keyframe ops

1.0.4:

- UI: Better cam ref exposition in Toolbox panel
  - Access to opacity
  - merge activation bool with source type icon
- feat: Added a clear active frame operator (`gp.clear_active_frame` to add manually in keymaps)
This commit is contained in:
Pullusb
2021-03-31 01:38:17 +02:00
parent 5e876f360b
commit b9dd1196ca
4 changed files with 61 additions and 8 deletions
+11 -6
View File
@@ -99,14 +99,19 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
for bg_img in context.scene.camera.data.background_images:
if bg_img.source == 'IMAGE' and bg_img.image:
row = box.row(align=True)
row.label(text=bg_img.image.name, icon='IMAGE_RGB')# FILE_IMAGE
# row.prop(bg_img, 'alpha', text='')# options={'HIDDEN'}
row.prop(bg_img, 'show_background_image', text='')# options={'HIDDEN'}
row.prop(bg_img, 'show_background_image', text='', icon='IMAGE_RGB')
row.prop(bg_img, 'alpha', text=bg_img.image.name) # options={'HIDDEN'}
# row.label(icon='IMAGE_RGB')
# icon = 'HIDE_OFF' if bg_img.show_background_image else 'HIDE_ON'
# row.prop(bg_img, 'show_background_image', text='', icon=icon)
if bg_img.source == 'MOVIE_CLIP' and bg_img.clip:
row = box.row(align=True)
row.label(text=bg_img.clip.name, icon='FILE_MOVIE')
# row.prop(bg_img, 'alpha', text='')# options={'HIDDEN'}
row.prop(bg_img, 'show_background_image', text='')# options={'HIDDEN'}
row.prop(bg_img, 'show_background_image', text='', icon='FILE_MOVIE')
row.prop(bg_img, 'alpha', text=bg_img.clip.name) # options={'HIDDEN'}
# row.label(icon='FILE_MOVIE')
# icon = 'HIDE_OFF' if bg_img.show_background_image else 'HIDE_ON'
# row.prop(bg_img, 'show_background_image', text='', icon=icon)
## playblast params
layout.separator()