create context to work only with a selected strip

master
florentin.luce 2024-12-19 10:39:11 +01:00
parent c623f3e0a8
commit 9099b23a12
1 changed files with 4 additions and 0 deletions

View File

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