<?xml version="1.0" encoding="UTF-8" ?>
 
<scene>
  <box id="home" color="#ff00aa" position='0 10 0' />
  <box id="two" color="#0033aa" position='0 20 0' />
  <script>
    scene.addEventListener("ready", function(event) {
      console.log("Color of #home is: " + scene.getElementById("home").getAttribute("color"));
      // scene.close();
    });
  </script>
</scene>
<?xml version="1.0" encoding="UTF-8" ?>
 
<scene>
  <box id="home" color="#ff00aa" position='0.5 0.5 -10.5' />
  <box id="two" color="#0033aa" position='0.5 0.5 -20.5' />

  <script>
    scene.addEventListener("ready", function(event) {
      console.log("Color of #home is: " + scene.getElementById("home").getAttribute("color"));
      // scene.close();
    });
  </script>
</scene>
Align cubes with grid in web viewer.
Align cubes with grid in web viewer.
