Compare commits

..

2 Commits

Author SHA1 Message Date
florentin.luce 2690a197c6 update poll log 2024-12-19 10:48:21 +01:00
florentin.luce 9099b23a12 create context to work only with a selected strip 2024-12-19 10:39:11 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -413,8 +413,8 @@ class VSETB_OT_open_strip_folder(Operator):
cls.poll_message_set('No active')
return
if not any(p in get_channel_name(strip) for p in ('Shots', 'Sequences', 'Movie', 'Video', 'Audio', 'Sound')):
cls.poll_message_set('Only for Shots, Sequences, Movie and Audio strips')
if not any(p in get_channel_name(strip) for p in ('Movie', 'Video', 'Audio', 'Sound')):
cls.poll_message_set('No active Movie or Audio strip')
return
return True

View File

@ -449,6 +449,10 @@ class VSETB_OT_open_shot_on_tracker(Operator):
@classmethod
def poll(cls, context):
if not get_strips(channel='Shots', selected_only=True):
cls.poll_message_set('No active Shots strip')
return
prefs = get_addon_prefs()
if prefs.tracker:
return True