<div dir="ltr"><div dir="ltr"><div dir="ltr">I am dumping my scene:<div><br></div><div> var xml = Browser.currentScene.toXMLString();<br> document.querySelector("#x3d").innerHTML = xml;</div><div><br></div><div>And it only shows the ProtoBody, which is OK.</div><div><br></div><div><Group><br> <Transform DEF='protoSlider'><br> <IS><br> <connect nodeField='translation' protoField='sliderTranslation'/><br> </IS><br> <Transform DEF='protoTransform'><br> <IS><br> <connect nodeField='translation' protoField='transformTranslation'/><br> <connect nodeField='translation' protoField='sensorTranslation'/><br> </IS><br> <PlaneSensor DEF='protoSensor'<br> maxPosition='1 0'/><br> <Transform><br> <TouchSensor DEF='protoTS'/><br> </Transform><br> <Transform><br> <Shape><br> <Appearance><br> <Material/><br> </Appearance><br> <Text DEF='protoText'><br> <IS><br> <connect nodeField='string' protoField='textString'/><br> </IS><br> <FontStyle<br> size='0.23'/><br> </Text><br> </Shape><br> </Transform><br> </Transform><br> </Transform><br> <Script DEF='protoValueTransformerScript'<br> directOutput='true'<br> mustEvaluate='true'><br> <field accessType='inputOutput' type='SFFloat' name='protoScale'/><br> <field accessType='inputOutput' type='MFString' name='petNames'/><br> <field accessType='inputOutput' type='SFString' name='protoParameterName'/><br> <field accessType='inputOutput' type='SFNode' name='shader'/><br> <field accessType='inputOnly' type='SFVec3f' name='newTranslation'/><br> <field accessType='outputOnly' type='SFFloat' name='protoValue_changed'/><br> <field accessType='outputOnly' type='MFString' name='protoText_changed'/><br> <IS><br> <connect nodeField='protoScale' protoField='parameterScale'/><br> <connect nodeField='petNames' protoField='petNames'/><br> <connect nodeField='protoParameterName' protoField='parameterName'/><br> <connect nodeField='shader' protoField='shaderNode'/><br> </IS><br><![CDATA[../javascripts/X3DUser.js]]><br> </Script><br> <Group DEF='nodeGroup'/><br> <Group DEF='linkGroup'/><br></Group><br><ROUTE fromNode='protoSensor' fromField='translation_changed' toNode='protoTransform' toField='set_translation'/><br><ROUTE fromNode='protoSensor' fromField='translation_changed' toNode='protoValueTransformerScript' toField='newTranslation'/><br><ROUTE fromNode='protoValueTransformerScript' fromField='protoText_changed' toNode='protoText' toField='set_string'/><br></div><div><br></div><div><br></div><div><br></div><div>I am adding children nodes like:</div><div><br></div><div>const setMFField = function(node, fieldName, value) { </div><div> let field = node.getField(fieldName);</div><div> let children = field.getValue();<br> children.push(value);<br> field.setValue(children);<br>}</div><div><br></div><div>setMFField(nodeTransform, 'addChildren', shape);</div><div>setMFField(linkTransform, 'addChildren', shape); </div><div>setMFField(nodeGroup, 'addChildren', nodeTransform); </div><div>setMFField(linkGroup, 'addChildren', linkTransform);</div><div><br></div><div>Nothing is being added to the nodeGroup and linkGroup, as far as i can tell. The textarea is continually being refreshed.</div><div><br></div><div>Any hints with SAI are welcome.</div><div><br></div><div>John</div><div><br></div></div>
</div>
</div>