![]() |
|
#1
|
|||
|
|||
|
I am trying to modify some sound object properties on the fly, so I can hear the differences as I make changes. I know the changes will be updated without restarting the script, because I can make this work with presets.
I want to be able to select the property I want to change from a list and then use an input value to update the property. 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']
select = viz.choose('Modify which setting?',settings)
set = viz.input('Set '+settings[select]+' to')
if settings[select] == 'Environment':
gr.Environment = set
(twenty more elifs...)
else:
print 'I cannot change that setting'
Code:
gr.settings[select] = set
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| output to multiple (two) sound devices | GiudiceLab | Vizard | 1 | 08-05-2009 02:12 PM |
| Any ideas on linking chess 3ds file with source code? | djones1010 | Vizard | 1 | 04-24-2009 10:56 PM |
| multiple objects | durf | Vizard | 1 | 04-10-2009 02:42 PM |
| Vizard Tip of the Month: Use Tasks to Simplify your Code | Gladsomebeast | Vizard | 5 | 05-02-2008 05:30 PM |
| tracking with multiple LEDS | dan12345 | Precision Position Tracker (PPT) | 7 | 04-02-2008 11:44 PM |