Ajax opened this issue on Aug 18, 2003 ยท 25 posts
Ajax posted Fri, 22 August 2003 at 7:46 AM
Hey ockham, I'm trying to work out how to implement the "tickling" approach you suggested, which looks like the best solution. I need to store two numbers (a parameter's value and an adjustment value that will be added to it) indexed by actor and parameter. From what little I know of Python, a dictionary looks like the tool I need, but I can't quite see how to handle the double index. I know I could get the actor name and concatenate it with the parameter name to create a unique string key, but if possible I'd prefer something that allows me to use the actor and the parameter themselves as indices. I guess I want lists or tuples for the two values, placed in a dictionary keyed by parameter, with those dictionaries placed in a dictionary keyed by actor. I'm having a little trouble imaginining the syntax for extracting the two numerical values from such a construction though. How would that look?
View Ajax's Gallery - View
Ajax's Freestuff - View
Ajax's Store -
Send Ajax a message