<div dir="ltr">Since MFString in text nodes is used to enable multiple lines in a text, another idea would be use the newline/linefeed (and return) control characters \n (and \r) as delimiters, perhaps just for such a StringSequencer node:<div><br></div><div>keyValue=' "textA_line1 &#10; textA_line2" "textB_line1 &#10; textB_line2" '</div><div><br></div><div>the provided value_changed output would be a standard MFString : ' "textA_line1 " " textA_line2" '</div><div><br></div><div>This has the advantage that keyValue becomes a regular MFString. It has the disadvantage of introducing a special case treatment of a MFString for a potential StringSequencer node but that may be unavoidable.</div><div><br></div><div>I believe MFString is otherwise used mostly for URLs which should not have &#10; character.</div><div><br></div><div>Other than scripts, is there a way to provide sources of text content to selectively use in a scene ? Switch only allows ChildNodes (Shapes and Grouping nodes).</div><div><br></div><div>-Andreas</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 11:39 AM, Andreas Plesch <span dir="ltr"><<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>While working on the IntegerSequencer test</div><div><br></div><div><a href="https://glitch.com/edit/#!/x3dom-sequencer-interval-test?path=IntegerKeyTest.html:54:10" target="_blank">https://glitch.com/edit/#!/<wbr>x3dom-sequencer-interval-test?<wbr>path=IntegerKeyTest.html:54:10</a></div><div><br></div><div>it was necessary to use a lot of switch nodes to display different texts depending on some input.</div><div><br></div><div>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/<wbr>Interpolators had been discussed at some point ?</div><div><br></div><div>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.</div><div><br></div><div>Add another layer of quotes ?</div><div><div>keyValue=" ' "MFString1_a" "MFString1_b" '  ' "MFString2_a" "MFString2_b" ' "  </div><div></div></div><div><div><br></div><div>Use comma as a dedicated delimiter ?</div><div>keyValue=' "MFString1_a" "MFString1_b", "MFString2_a" "MFString2_b" '  </div><div></div></div><div><br></div><div>Some other delimiter (vertical bar |) ?</div><span class="HOEnZb"><font color="#888888"><div><br></div>-Andreas<br clear="all"><div><br></div>-- <br><div class="m_-7787137472126411333gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</div>