mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-14 04:10:08 +01:00
helper functions for getting variables from ManipulatePlugin into other parts of recur code
This commit is contained in:
@@ -103,6 +103,12 @@ class ManipulatePlugin(ActionsPlugin,DisplayPlugin,ModulationReceiverPlugin):
|
||||
if self.DEBUG: print("ManipulatePlugin>> set_variable (%s) to %s" % (var_name, value))
|
||||
self.variables[var_name] = value
|
||||
|
||||
def get_variable(self, var_name, default):
|
||||
if var_name in self.variables:
|
||||
return self.variables[var_name]
|
||||
else:
|
||||
return default
|
||||
|
||||
def recall_variable(self, var_name, action, *args):
|
||||
if self.DEBUG: print ("ManipulatePlugin>> recall_variable (%s) as %s" % (var_name,args))
|
||||
self.pc.actions.call_method_name(
|
||||
|
||||
Reference in New Issue
Block a user