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:
Tristan Rowley
2020-07-23 18:44:53 +00:00
parent 9e697dcbaa
commit f68a18de9d
3 changed files with 10 additions and 3 deletions

View File

@@ -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))