mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-17 05:39:59 +01:00
improve manipulate plugin a little, has rand() and better access to sin cos etc, examples in json_objects/midi_action_mapping_APC Key 25.json
This commit is contained in:
@@ -1093,7 +1093,11 @@ class Actions(object):
|
||||
return
|
||||
if arguments is not None and len(signature(method).parameters) == len(arguments): # only pass arguments if count matches method sig
|
||||
method(*arguments)
|
||||
elif arguments is not None and len(signature(method).parameters) == len(arguments)+1: # need to send in a dummy value
|
||||
arguments += [ None ]
|
||||
method(*arguments)
|
||||
else:
|
||||
print ("method_name %s: arguments is '%s'" % (method_name, arguments))
|
||||
method()
|
||||
except:
|
||||
print("Exception calling action for '%s' with arguments ( %s ) " % (method_name, arguments))
|
||||
|
||||
Reference in New Issue
Block a user