Virtual Reality Toolbox    

Setting the Default Editor of Virtual Scenes

You can edit virtual scenes with a VRML authoring tool, such as V-Realm Builder, or with any text editor, as the VRML language is written in text files. You determine the editor that is used to edit your scene by using the vrsetpref and vrgetpref commands.

The following procedure demonstrates how to change your editor from V-Realm Builder to a text editor. It assumes that you are working on a PC platform:

  1. At the MATLAB command prompt, type
  1. to determine whether V-Realm Builder is installed.

    MATLAB displays

    The viewer and editor are installed. If the editor is not installed, see Installing VRML Editor (Windows).

  1. Determine your default editor by typing
  1. MATLAB displays

    The variable a is a structure array. You need to index into it to determine the Editor property.

  1. To determine your default editor, type
  1. MATLAB displays

    This is the path to the V-Realm Builder executable file. V-Realm Builder is the current VRML editor.

  1. Verify that V-Realm Builder is your default editor. At the MATLAB command prompt, type
  1. The Inverted Pendulum demo loads and the pendulum is visible in the viewer.

  1. In the vrpend model window, double-click the VR Sink block.
  1. The Block Parameters dialog box opens.

  1. Click Edit.
  1. The vrpend model opens in the V-Realm Builder authoring tool.

  1. Change the default editor to the MATLAB editor by typing
  1. You can set your editor to any text editor you want to use by specifying the path to the executable of the text editor.

  1. Within the vrpend demo, open the VR Sink Block Parameters dialog box.
  2. Click the Edit button.
  1. The MATLAB editor opens and is now set as your default VRML editor.

  1. To reset the V-Realm Builder authoring tool as your default VRML editor, type
  1. Clicking the Edit button now launches V-Realm Builder.


  VRML Editor (UNIX/Linux) Removing Components