diff options
author | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
commit | 67c62d8c9e650f594e9aea348b8ed0c1351c7d81 (patch) | |
tree | e71d7ac7fc2538eda3e43e8e591342cab9620d06 /LightInstallation.py | |
parent | 2df9e408a0ff74539862c4a4e562a878cc11a329 (diff) |
Added JPGInput to process images. Modified Input and LightInstallation to support passing multiple
inputs simultaeneously. Added FadeIn Pixel event. Needs work / configurability.
Diffstat (limited to 'LightInstallation.py')
-rwxr-xr-x | LightInstallation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LightInstallation.py b/LightInstallation.py index 19d6c54..3f9500f 100755 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -182,8 +182,11 @@ class LightInstallation(object): def processResponse(self,inputDict, responseDict): inputId = inputDict['Id'] boundBehaviorIds = self.inputBehaviorRegistry[inputId] + if not isinstance(responseDict, list): + responseDict = [responseDict] try: - [compReg.getComponent(b).addInput(responseDict) for b in boundBehaviorIds] + for r in responseDict: + [compReg.getComponent(b).addInput(r) for b in boundBehaviorIds] except: pass #Behavior run before loading. Not a big deal. |