2.4 Scene Tree WindowAs seen in the previous section, to access to the Scene Tree Window you can either choose Scene Tree in the Tools menu, or use the mouse pointer to double-click on an object. The scene tree contains the information that describes a simulated world, including robots and environment, and its graphical representation. The scene tree of Webots is structured like a VRML97 file. It is composed of a list of nodes, each containing fields. Fields can contain values (text strings, numerical values) or other nodes. This section describes the user interface of the Scene Tree, gives an overview of the VRML97 nodes and Webots nodes. ![]() Figure 2.3: Scene Tree Window 2.4.1 Buttons of the Scene Tree WindowNodes can be expanded with a double-click. When a field is selected, its value can be edited at the bottom of the Scene Tree. All changes will be immediately reflected in the 3D window. The following buttons are available to edit the world:
Note that the first three nodes of the Scene Tree (WorldInfo, Viewpoint, and Background) cannot be cut, copied or pasted. One single instance of each of these nodes must be present in every Webots world, and in that precise order.
Note: We recommend to use the Scene Tree to write Webots world files. However, because the nodes and fields are stored in a human readable form, it is also possible to edit world files with a regular text editor. Some search and replace operation may actually be easier that way. Please refer to Webots Reference Manual for more info on the available node and the world file format. ![]() ^ page top ^ |
| E-mail to webmaster | Last updated: | Copyright © 2008 Cyberbotics Ltd. |