MCPcopy Create free account
hub / github.com/coldtype/st2 / poll

Method poll

ST2/exporting.py:381–386  ·  view source on GitHub ↗
(cls, context)

Source from the content-addressed store, hash-verified

379
380 @classmethod
381 def poll(cls, context):
382 ko = search.active_key_object(context)
383 if ko and ko.st2.has_keyframes(ko):
384 return True
385 else:
386 return False
387
388 def draw(self, context):
389 layout = self.layout

Callers

nothing calls this directly

Calls 1

has_keyframesMethod · 0.80

Tested by

no test coverage detected