There are a few ways to accomplish this. If all the choice strings exactly match the attribute name on the
gr object, then you can use the following code:
Code:
def modifySettings(gr):
settings = ['Environment','EnvSize','EnvDiffusion','RoomHF','RoomLF','DecayTime','DecayHFRatio','DecayLFRatio',
'Reflections','ReflectionsDelay','ReflectionsPan','Reverb','ReverbDelay','ReverbPan','EchoTime','EchoDepth',
'ModulationTime','ModulationDepth','AirAbsorptionHF','HFReference','LFReference','RoomRolloffFactor','Flags']
name = settings[viz.choose('Modify which setting?',settings)]
value = viz.input('Set '+name+' to')
setattr(gr,name,value)