<div dir="ltr">Now I'm getting the last output for both.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 10, 2020 at 1:36 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Not sure what to do except fix X3dToNodeJS.xslt stylesheet. Note the differences between running node and node.exe.<div><br></div><div>$ node examples/Json.js<br>C:\x3d-code\<a href="http://www.web3d.org" target="_blank">www.web3d.org</a>\x3d\stylesheets\java\node\examples\Json.js:411<br>        .addShaders((new autoclass.ProtoInstance("TestShader3", "ShaderProto")).setDEF("TestShader3").setName("ShaderProto"))<br>        ^<br><br>TypeError: Cannot read property 'addShaders' of null<br>    at Json.initialize (C:\x3d-code\<a href="http://www.web3d.org" target="_blank">www.web3d.org</a>\x3d\stylesheets\java\node\examples\Json.js:411:9)<br>    at new Json (C:\x3d-code\<a href="http://www.web3d.org" target="_blank">www.web3d.org</a>\x3d\stylesheets\java\node\examples\Json.js:135:10)<br>    at Object.<anonymous> (C:\x3d-code\<a href="http://www.web3d.org" target="_blank">www.web3d.org</a>\x3d\stylesheets\java\node\examples\Json.js:482:1)<br>?[90m    at Module._compile (internal/modules/cjs/loader.js:1176:30)?[39m<br>?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)?[39m<br>?[90m    at Module.load (internal/modules/cjs/loader.js:1040:32)?[39m<br>?[90m    at Function.Module._load (internal/modules/cjs/loader.js:929:14)?[39m<br>?[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)?[39m<br>?[90m    at internal/main/run_main_module.js:17:47?[39m<br><br>$ node.exe examples/Json.js<br>WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE='' is missing containerField relationship to parent node, assuming containerField='shaders' from initial node in corresponding ProtoDeclare. Need to fix ProtoInstance definition in model source.<br>Json execution self-validation test results:<br>WARNING_PROTOINSTANCE_NOT_FOUND, ProtoDeclare NewWorldInfo has no corresponding ProtoInstance attached to the scene graph.<br>WARNING_MESSAGE: ProtoInstance name='ShaderProto' DEF='TestShader3' USE='' is missing containerField relationship to parent node, assuming containerField='shaders' from initial node in corresponding ProtoDeclare. Need to fix ProtoInstance definition in model source.<br></div></div>
</blockquote></div>