From 67c62d8c9e650f594e9aea348b8ed0c1351c7d81 Mon Sep 17 00:00:00 2001 From: rcoh Date: Thu, 17 Feb 2011 02:45:27 -0500 Subject: Added JPGInput to process images. Modified Input and LightInstallation to support passing multiple inputs simultaeneously. Added FadeIn Pixel event. Needs work / configurability. --- LightInstallation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LightInstallation.py') 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. -- cgit v1.2.3