Reply To: Dry button: can it be hard set

Home Forums AR Sandbox Forum Dry button: can it be hard set Reply To: Dry button: can it be hard set

Oliver Kreylos

Two options:

  1. Start AR Sandbox as usual.
  2. Assign button function via tool selection menu.
  3. Save tool assignments via Vrui System Menu, Devices, Save Input Graph.
  4. Next time, add -loadInputGraph <input graph file name> to SARndbox’s command line.

Alternatively, create a new file called Vrui.cfg in the directory from where you run the SARndbox executable, and enter the following:

section Vrui
  section Desktop
    section Tools
      section DefaultTools
        section DrainButtonTools
          toolClass GlobalWaterTool
          bindings ((Mouse, 1, \ # Button/key used to add water
                            2))  # Button/key used to remove water

The AR Sandbox’s underlying Vrui toolkit will pick up a configuration file called Vrui.cfg if it is found in the current directory, and merge it into its global configuration space. Alternatively, name the file SARndbox.cfg or similar, save it anywhere (for example in the directory that already contains BoxLayout.txt), and load it explicitly via -mergeConfig <configuration file path>.

Comments are closed.