mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-11 10:50:03 +01:00
ModulationReceiverPlugin that allows plugin to receive when the modulation slots A-D (1-4) value changes... with quick hack to WJSendPlugin to wiggle some parameters in response
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import display_centre.menu as menu
|
||||
import os
|
||||
from statistics import mean
|
||||
from data_centre.plugin_collection import ModulationReceiverPlugin
|
||||
|
||||
class Shaders(object):
|
||||
MENU_HEIGHT = 10
|
||||
@@ -230,6 +231,8 @@ class Shaders(object):
|
||||
|
||||
def modulate_param_to_amount(self, param, value):
|
||||
self.modulation_value[param] = (value-0.5)*2
|
||||
for plugin in self.data.plugins.get_plugins(ModulationReceiverPlugin):
|
||||
plugin.set_modulation_value(param, self.modulation_value[param])
|
||||
for layer,params in enumerate(self.selected_param_list):
|
||||
for ip,p in enumerate(params):
|
||||
for p2,v in enumerate(self.selected_modulation_level[layer][ip]):
|
||||
|
||||
Reference in New Issue
Block a user