From 9099b23a12816e60cb751e80aef257870ee4e07e Mon Sep 17 00:00:00 2001 From: "florentin.luce" Date: Thu, 19 Dec 2024 10:39:11 +0100 Subject: [PATCH] create context to work only with a selected strip --- operators/tracker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/operators/tracker.py b/operators/tracker.py index 3e7d8cd..ffa9b80 100644 --- a/operators/tracker.py +++ b/operators/tracker.py @@ -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