[x3d-public] string sequencer/interpolator ?
Andreas Plesch
andreasplesch at gmail.com
Thu Oct 5 08:39:37 PDT 2017
While working on the IntegerSequencer test
https://glitch.com/edit/#!/x3dom-sequencer-interval-test?path=IntegerKeyTest.html:54:10
it was necessary to use a lot of switch nodes to display different texts
depending on some input.
With a StringSequencer one could directly feed text into Text nodes,
selected by a key. This would substantially streamline scenes with dynamic
or conditional text. Maybe String/TextSequencers/Interpolators had been
discussed at some point ?
Since such a StringSequencer would need to have multiple MFStrings as
keyValues, a practical issue would become how to encode such an array of
MFStrings in xml (and json). A MMFString in effect.
Add another layer of quotes ?
keyValue=" ' "MFString1_a" "MFString1_b" ' ' "MFString2_a" "MFString2_b" '
"
Use comma as a dedicated delimiter ?
keyValue=' "MFString1_a" "MFString1_b", "MFString2_a" "MFString2_b" '
Some other delimiter (vertical bar |) ?
-Andreas
--
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171005/e586a515/attachment.html>
More information about the x3d-public
mailing list