Can't drive gadget value with Gal MIDI Mapper

Hi,

I would like to use the midi mapper in the gal component from the Palette. I am able to assign the midi input to a path but I can’t run the command line in the chopexec1 that should drive the gadgets.

fromMap = op(‘fromMap’)
try:
key = channel.owner.path+‘:’+channel.name
cmd = fromMap[key,‘cmd’]
run(eval(cmd))
except:
pass

Any thought on what is wrong?
Thank you!

Vincent Brault

I was having a similar problem with mapping in the gal component, except i was trying to use chops to drive the gal components.
if i ran the cmd by itself, it worked, and if i ran the whole run(eval(cmd)) just in python it would work, but once it went into the chopexec it would not.
i ended up hard coding a bunch of if statements in the chopexec.

i have an example file in my post, and an excerpt below. it would be wonderful to get the run(eva()) working.