From 6cb8952976d771d5f3be20a1eb1cd9b957651a54 Mon Sep 17 00:00:00 2001 From: dxiao Date: Sun, 20 Feb 2011 22:59:19 -0500 Subject: Fixed problems with RunFinite --- behaviors/RunFinite.py | 9 +- config/C5Sign-dxiao.xml | 396 ----------------------------------------------- config/C5Sign-pygame.xml | 2 +- 3 files changed, 7 insertions(+), 400 deletions(-) delete mode 100644 config/C5Sign-dxiao.xml diff --git a/behaviors/RunFinite.py b/behaviors/RunFinite.py index de2ce27..498998a 100644 --- a/behaviors/RunFinite.py +++ b/behaviors/RunFinite.py @@ -10,7 +10,8 @@ class RunFinite(Behavior): def processResponse(self, inp, state): - if state: + print "runfinite ", str(inp), ",", str(state) + if state != []: iterations = state else: iterations = self['Iterations'] @@ -20,6 +21,8 @@ class RunFinite(Behavior): else: out = [] - iterations -= 1 - + if inp: + iterations -= 1 + + print " -->", str(iterations), ",", str(out) return (out, iterations) diff --git a/config/C5Sign-dxiao.xml b/config/C5Sign-dxiao.xml deleted file mode 100644 index 7dc4b81..0000000 --- a/config/C5Sign-dxiao.xml +++ /dev/null @@ -1,396 +0,0 @@ - - - - - simplemap - - - - layouts/C5SignLayout.xml - - - - - pixelmappers.C5SignMapper - - c5signmapper - 20 - - - - - pixelmappers.SimpleMapper - - simplemap - 20 - - - - pixelmappers.GaussianMapper - - gaussmap - 30 - 0.1 - 7 - 1 - - - - - - renderers/C5Renderer.xml - - - - - - - inputs.OSCInput - - osc - 1234 - 10 - - - - - inputs.UDPInput - - udp - 3344 - 50 - - - - inputs.ContinuousCenterInput - - center - 1800 - - - - - inputs.ContinuousLocationInput - - centerleft - left - center - 1800 - - - - - - - - - - touchosc - - behaviors.TouchOSC - - - behaviors/RandomColor.xml - - - - - - behaviors.BehaviorChain - - OSCTouchChase - - osc - - - touchosc - decay - - gaussmap - False - - - - behaviors/PixelDecay.xml - - - behaviors/SingleFrame.xml - - - - behaviors/PixelDecay.xml - - .001 - - - - - behaviors.XYMove - - xymove - 1 - 1 - - - - behaviors.RestrictLocation - - xbounce - {val}*-1 - XStep - {x}<2 or {x}>48 - - - - behaviors.RestrictLocation - - ybounce - {val}*-1 - YStep - {y}<2 or {y}>24 - - - - behaviors.BehaviorChain - - movebounce - - xymove - ybounce - xbounce - - - - - behaviors.ModifyParam - - ysin - YStep - Sensor - 4*math.sin({x}/float(40)) - - - - behaviors.DebugBehavior - - debug - 0 - - pygamekey - udp - - - - - behaviors.AllPixels - - square - 20 - - - - behaviors/LoopAndDie.xml - - 160 - - - - behaviors.BehaviorChain - - runcolordecay - - pygameclick - - - colorchange - mover - - decay - - {'mover':'movebounce'} - False - gaussmap - - - - behaviors.ResponseMover - - mover - - - - behaviors.RandomWalk - - randmovement - 2 - - - - behaviors/Accelerate.xml - - - behaviors.EchoBehavior - - echo - 0 - False - - - - behaviors.ColorShift - - colorshift - - - - behaviors.BehaviorChain - - mousechaser - - - - echo - innercircle - outercircle - singleframe - - False - - - - behaviors.Circle - - innercircle - 0 - True - - - - behaviors.Circle - - outercircle - 3 - True - - - - behaviors.ModifyParam - - incrinner - {val}+.3 - innercircleRadius - - - - behaviors.ModifyParam - - incrouter - {val}+.3 - outercircleRadius - - - - behaviors.BehaviorChain - - circle_expand - - innercircle - outercircle - incrinner - incrouter - recursivedecay - - - - - behaviors.BehaviorChain - - expandingcirlces - - centerleft - - - colorchange - mover - decay - - {'mover':'circle_expand'} - False - - - - - behaviors.ModifyParam - - incrVertBarLoc - xLoc - {val}+1 - - - - behaviors.VerticalBar - - vertBar - - - - behaviors.BehaviorChain - - bar_move - - vertBar - incrVertBarLoc - recursivedecay - - - - - behaviors.BehaviorChain - - scanningbars - - centerleft - - - colorchange - mover - slowdecay - - {'mover':'bar_move'} - True - - - - - behaviors/RunningBehavior.xml - - - diff --git a/config/C5Sign-pygame.xml b/config/C5Sign-pygame.xml index d08e14c..2040642 100644 --- a/config/C5Sign-pygame.xml +++ b/config/C5Sign-pygame.xml @@ -14,5 +14,5 @@ - config/C5Sign-Leah.xml + config/C5Sign.xml -- cgit v1.2.3