selection of multiple properties, code help?
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): Code:
gr.settings[select] = set |
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): |
Sweet. Worked like a charm. Thanks!
|
All times are GMT -7. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC