VR Scripting

Learn how to add VR scripts to the Terminal or Script Editor in VRED.

learnMore icon For additional information on vr scripting, see Using Python for VR.

Video captions: Let's start by visiting the Handlebar 3D website and grabbing their free roaming script (https://handlebar3d.com/free-roam-script ) created by Ray@Handlebar3D.com. One way to add it is to paste it into the VRED Terminal and press Enter to load the script. However, to save it to your file, in the main menu bar, select Edit > Script Editor and paste the code. Now, every time the VR file is opened, the code is automatically run. Now, save the file to avoid the need to add it each time you open the file.

Let's set the quality of our view in VR. In the main menu bar, select Visualization > Realtime Antialiasing > Medium. Next, select View > Display > OpenVR HMD to enter VR. Now, pull the trigger to activate the teleporter. Orient it to the where you want to be, then let go of the trigger to teleport yourself there.

Thanks to Ray at Handlebar 3D for his free roaming script, which is found here: https://handlebar3d.com/free-roam-script.