plugins summarise their frame data for display (LFOModulation, rudimentary WJMXSend altho cant see it working?), LFOModulation should save+recall active state and speed now too?

This commit is contained in:
Tristan Rowley
2020-03-12 23:33:47 +00:00
parent 75446f682a
commit e6785cdca2
4 changed files with 47 additions and 11 deletions

View File

@@ -225,6 +225,10 @@ class AutomationSourcePlugin(Plugin):
def recall_frame_data(self, data):
raise NotImplementedError
def get_frame_summary(self, data):
line = self.__class__.name + "%s: %s"%(self.__class__.name,data)
return line
# these frame stubs deal with the simplest case of a frame being a dict of values
# if its anything more complicated than that (like lists) then that will need to be
# handled in the plugin by overriding these methods
@@ -482,6 +486,13 @@ class PluginCollection(object):
else:
return [c for c in self.plugins if include_disabled or not c.disabled]
def get_plugin_for_class_name(self, class_name):
for plugin in self.get_plugins():
#print("got class name %s" % type(plugin).__name__==class_name)
if type(plugin).__name__==class_name == class_name:
return plugin
return None
def walk_package(self, package):
"""Recursively walk the supplied package to retrieve all plugins
"""