<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" dir="auto"> Use the set_xfield functions on field_changed (xfield).</blockquote><div dir="auto"><br></div><div dir="auto">Not implemented. Is this new code? Where would I put it under Scripting/? Can you provide a short example?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" dir="auto"><br>
Post messages for all _changed fields as given in the field def.<br>
Somehow deal with SFNode fields.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" dir="auto"><br></blockquote></div></div></blockquote><div><br></div><div>There is sample code under Script.js:</div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js#L346">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js#L346</a><br></div><div><br></div><div>Below:</div><div>====================================================================</div><div> doRoute(mypackage, fromNode, fromField, toNode, toField, log, set, changed, selector, url) {<br> var fromScript = mypackage.find(fromNode);<br> var toScript = mypackage.find(toNode);<br> // only add routes with scripts involved<br> if (typeof fromScript !== 'undefined' || typeof toScript !== 'undefined') {<br> var from = this.nodeUtil(selector)+fromNode+"','"+fromField+"')";<br> if (typeof fromScript !== 'undefined') {<br> from = 'typeof '+this.useX3DJSON('Obj', selector, url, fromScript.name)+'.'+fromField+changed+' === "function" ? '+this.useX3DJSON('Obj', selector, url, fromScript.name) + '.'+fromField+changed+'() : '+this.useX3DJSON('Obj', selector, url, fromScript.name) + '.'+fromField;<br> }<br> var to = this.nodeUtil(selector)+toNode+"','"+toField+"',";<br> if (typeof toScript !== 'undefined') {<br> to = this.useX3DJSON('Obj', selector, url, toScript.name) + '.'+set+toField+'(';<br> }<br> if (typeof fromScript !== 'undefined' && typeof toScript !== 'undefined') {<br> log.log(" if ("+this.useX3DJSON('Obj', selector, url, toScript.name)+" && "+from+") {");<br> }<br> log.log(" "+to+from+", __eventTime);");<br> if (typeof fromScript !== 'undefined' && typeof toScript !== 'undefined') {<br> log.log(" }");<br> }<br> }<br> }<br><br></div><div> ====================================================================</div><div><br></div></div></div>