<div dir="auto">I am thinking about how to convert this example of a 4 state button from scripting to event utilities:<div dir="auto"><br></div><div dir="auto"><a href="http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/ScriptComplexStateEventsIndex.html">http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/ScriptComplexStateEventsIndex.html</a><br></div><div dir="auto"><br></div><div dir="auto">Using a Switch driven by an IntegerSequencer driven by the TouchSensor using the next field would work but requires 4 full Shape nodes.</div><div dir="auto"><br></div><div dir="auto">If there were a FloatSequencer, it would be possible to use it to provide fractions to a ColorInterpolator to be fed into the bulb material. This would be closer to the script and overall a more direct, and perhaps elegant solution.</div><div dir="auto"><br></div><div dir="auto">In general, with a FloatSequencer it would be possible to use all the Interpolators as typed output, in effect converting from boolean.</div><div dir="auto"><br></div><div dir="auto">Since such a FloatSequencer is very straightforward to implement (in x3dom almost identical to IntegerSequencer) I will try this but wonder if such a node had been proposed in the past?</div><div dir="auto"><br></div><div dir="auto">I suspect that it would be almost trivial to add such a node to any browser and suggest that it would enhance the utility of the event utilities substantially, pun notwithstanding.</div><div dir="auto"><br></div><div dir="auto">Any feedback or comment very welcome,</div><div dir="auto"><br></div><div dir="auto">Andreas</div></div>