mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-14 12:20:03 +01:00
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:
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user