<div dir="ltr">I want to use a TouchSensor in a ROUTE that I am adding in Sunrize ECMAScript (SAI, embedded scripts), but I can't seem to set the DEF, so I can't really add the ROUTE.<div><br></div><div>I can't use createX3DFromString(), perhaps, because I might not be able to access DEF to get the DEF value.  I don't have experience using the result from createX3DFromString().</div><div><br></div><div>I am creating TouchSensors in a double loop, and it appears the only way to do it is with  code generation.</div><div><br></div><div>Hmm.  AFAIK, setting DEF is super simple in Java and Python, especially in DOM.</div><div><br></div><div>I don't really feel like code generation is reasonable, because I will have to rewrite my code.</div><div><br></div><div>This is where I through my hands up and use something like raylib or HTML.</div><div><br></div><div>Using a PROTO might be much more reasonable.</div><div><br></div><div>John</div></div>