{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.2",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.2.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TestSliders.x3d"
          },
          {
            "@name":"description",
            "@content":"X3D Follower example"
          },
          {
            "@name":"creator",
            "@content":"Herbert Stocker"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"18 April 2006"
          },
          {
            "@name":"translated",
            "@content":"2 December 2011"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"originals/test_Sliders.wrl"
          },
          {
            "@name":"reference",
            "@content":"Stocker_06_Followers.pdf"
          },
          {
            "@name":"reference",
            "@content":"http://www.hersto.com/Publications/Followers"
          },
          {
            "@name":"requires",
            "@content":"X3D version 3.2 or greater"
          },
          {
            "@name":"subject",
            "@content":"X3D Follower Chaser Damper"
          },
          {
            "@name":"warning",
            "@content":"under development"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/Followers/TestSliders.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"TestSliders.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Slider",
              "@url":["Slider.x3d#Slider","https://www.web3d.org/x3d/content/examples/Basic/Followers/Slider.x3d#Slider","Slider.wrl#Slider","https://www.web3d.org/x3d/content/examples/Basic/Followers/Slider.wrl#Slider"],
              "field": [
                {
                  "@name":"initial_position",
                  "@accessType":"initializeOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"radiusKnob",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"radiusStick",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"min",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"position_changed",
                  "@accessType":"outputOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"appearance",
                  "@accessType":"inputOutput",
                  "@type":"SFNode"
                },
                {
                  "@name":"smoothMovements",
                  "@accessType":"inputOutput",
                  "@type":"SFBool"
                },
                {
                  "@name":"set_position",
                  "@accessType":"inputOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"pageSize",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"max",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"height",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                }
              ]
            }
          },
          { "NavigationInfo":
            {
              "@type":["EXAMINE"]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 1",
              "@orientation":[-0.527,0.846,0.075,0.462],
              "@position":[2.741,3.259,6.6]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 2",
              "@orientation":[0.973,0.232,0.024,0.466],
              "@position":[0.865,-1.591,6.723]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 3",
              "@orientation":[0.997,0.06,0.05,1.705],
              "@position":[0.934,-5.744,-0.794]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 4",
              "@orientation":[0.888,0.23,0.399,3.139],
              "@position":[5.165,3.009,-4.663]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 5",
              "@orientation":[0.116,0.234,-0.965,1.866],
              "@position":[0.424,-2.489,8.627]
            }
          },
          { "Viewpoint":
            {
              "@description":"view 6",
              "@orientation":[-0.3,0.639,-0.708,1.922],
              "@position":[6.309,-1.261,2.853]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Transform":
                  {
                    "@rotation":[0.983,0.152,0.098,0.286],
                    "-children":[
                      { "Transform":
                        {
                          "@rotation":[0.705,0.654,-0.274,-1.09],
                          "-children":[
                            { "Transform":
                              {
                                "@rotation":[0.0,0.0,-1.0,1.5708],
                                "@translation":[2.5,0.0,0.0],
                                "-children":[
                                  { "ProtoInstance":
                                    {
                                      "@name":"Slider",
                                      "@DEF":"SldX",
                                      "fieldValue": [
                                        {
                                          "@name":"initial_position",
                                          "@value":2.5
                                        },
                                        {
                                          "@name":"radiusKnob",
                                          "@value":0.225
                                        },
                                        {
                                          "@name":"min",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"radiusStick",
                                          "@value":0.15
                                        },
                                        {
                                          "@name":"appearance",
                                          "-children":[
                                            { "Appearance":
                                              {
                                                "@DEF":"App",
                                                "-material":
                                                  { "Material":
                                                    {
                                                      "@ambientIntensity":0.055,
                                                      "@diffuseColor":[0.75,0.0,0.55],
                                                      "@emissiveColor":[0.1,0.0,0.07],
                                                      "@shininess":0.157,
                                                      "@specularColor":[0.67,0.67,0.67]
                                                    }
                                                  }
                                              }
                                            }
                                          ]
                                        },
                                        {
                                          "@name":"pageSize",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"max",
                                          "@value":5.0
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@translation":[0.0,-1.25,0.0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"App"
                                                }
                                              },
                                            "-geometry":
                                              { "Cylinder":
                                                {
                                                  "@height":2.5,
                                                  "@radius":0.02
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0.0,2.5,0.0],
                                "-children":[
                                  { "ProtoInstance":
                                    {
                                      "@name":"Slider",
                                      "@DEF":"SldY",
                                      "fieldValue": [
                                        {
                                          "@name":"initial_position",
                                          "@value":2.5
                                        },
                                        {
                                          "@name":"radiusKnob",
                                          "@value":0.225
                                        },
                                        {
                                          "@name":"min",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"radiusStick",
                                          "@value":0.15
                                        },
                                        {
                                          "@name":"appearance",
                                          "-children":[
                                            { "Appearance":
                                              {
                                                "@USE":"App"
                                              }
                                            }
                                          ]
                                        },
                                        {
                                          "@name":"pageSize",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"max",
                                          "@value":5.0
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@translation":[0.0,-1.25,0.0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"App"
                                                }
                                              },
                                            "-geometry":
                                              { "Cylinder":
                                                {
                                                  "@height":2.5,
                                                  "@radius":0.02
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@rotation":[1.0,0.0,0.0,1.5708],
                                "@translation":[0.0,0.0,2.5],
                                "-children":[
                                  { "ProtoInstance":
                                    {
                                      "@name":"Slider",
                                      "@DEF":"SldZ",
                                      "fieldValue": [
                                        {
                                          "@name":"initial_position",
                                          "@value":2.5
                                        },
                                        {
                                          "@name":"radiusKnob",
                                          "@value":0.225
                                        },
                                        {
                                          "@name":"min",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"radiusStick",
                                          "@value":0.15
                                        },
                                        {
                                          "@name":"appearance",
                                          "-children":[
                                            { "Appearance":
                                              {
                                                "@USE":"App"
                                              }
                                            }
                                          ]
                                        },
                                        {
                                          "@name":"pageSize",
                                          "@value":1.0
                                        },
                                        {
                                          "@name":"max",
                                          "@value":5.0
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@translation":[0.0,-1.25,0.0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"App"
                                                }
                                              },
                                            "-geometry":
                                              { "Cylinder":
                                                {
                                                  "@height":2.5,
                                                  "@radius":0.02
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[0.983,0.152,0.098,0.286],
              "-children":[
                { "Transform":
                  {
                    "@rotation":[0.705,0.654,-0.274,-1.09],
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"Trans",
                          "-children":[
                            { "TouchSensor":
                              {
                                "@DEF":"TchBox",
                                "@description":"touch to activate"
                              }
                            },
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":0.0933,
                                            "@diffuseColor":[0.37,0.0,0.75],
                                            "@emissiveColor":[0.05,0.0,0.1],
                                            "@shininess":0.41,
                                            "@specularColor":[0.91,0.91,0.91]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[0.3,0.3,0.3]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"Worker",
              "field": [
                {
                  "@name":"set_Z",
                  "@accessType":"inputOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"set_Y",
                  "@accessType":"inputOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"set_X",
                  "@accessType":"inputOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"Pos",
                  "@accessType":"initializeOnly",
                  "@type":"SFVec3f",
                  "@value":[1.0,1.0,1.0]
                },
                {
                  "@name":"Pos_changed",
                  "@accessType":"outputOnly",
                  "@type":"SFVec3f"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function set_X(x) { Pos.x= x; }",
"function set_Y(y) { Pos.y= y; }",
"function set_Z(z) { Pos.z= z; }",
"",
"function eventsProcessed()",
"{",
"    Pos_changed= Pos;",
"}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"SldX",
              "@toField":"set_X",
              "@toNode":"Worker"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"SldY",
              "@toField":"set_Y",
              "@toNode":"Worker"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"SldZ",
              "@toField":"set_Z",
              "@toNode":"Worker"
            }
          },
          { "ROUTE":
            {
              "@fromField":"Pos_changed",
              "@fromNode":"Worker",
              "@toField":"scale",
              "@toNode":"Trans"
            }
          },
          { "Script":
            {
              "@DEF":"SmoothWorker",
              "field": [
                {
                  "@name":"SmoothMovements",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"Box_touched",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function initialize()",
"{",
"    SmoothMovements= true;",
"}",
"",
"function Box_touched(now)",
"{",
"    SmoothMovements= !SmoothMovements;",
"}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TchBox",
              "@toField":"Box_touched",
              "@toNode":"SmoothWorker"
            }
          }
        ]
    }
  }
}