VRED Python Examples
Overview of the VRED Python examples. They can be found in VRED by using File > Open Examples.
Animations
Annotations
Cameras
Collision Detection
Connector
- Connect two VRED instances (client script)
- Connect two VRED instances (server script)
Constraints
- Simple constraints demo
- Toy Excavator Constraints demo
Geometry
Lightmaps
Materials
- Create texture and add it to a material
- Change existing material
- Switch materials on keypress
- Material groups
Measurement
Physics
- Physics Basic Collision Example
- Physics Collision Example with Contact Information
- Physics save and load example
Programming
- Import own Python extensions
- Multithreading example
- Insert code in the event loop
- vrTimer demo
- Attach callback to the event loop
- Render every frame
- Analog Clock example
Rendering
Sceneplates
Scenetree
- Add child nodes
- Find nodes and materials
- Find nodes with caching
- Find geometry nodes
- Creating a local clipping plane
Sound
- 3D sound examples
- vrSpeech demo
User Input
User Interface
- Manipulate docking state of render window
- Switch render window to fullscreen
- Open a dialog window with PySide2
- Render every frame
- Webengine menu demo
- Custom Javascript events in Webengines
vrMenu
- Menu with Show Terminal button
- Menu with buttons and checkboxes example 1
- Menu with buttons and checkboxes example 2
- Menu showing the VRED web interface
- Menu with a WebGL demo
- Menu mapped on a cube
- Menu mapped on a cube showing WebGL
Virtual Reality Device Interaction
- Implementation of a custom device interaction
- Combine a custom and a default device interaction
- Connect to signals of device actions
- Extend the default teleport to multi user teleport
- Print device actions of a device interaction
- Print out all available device interactions
- Scale geometry in VR by using controllers
- Set the default teleport to a virtual button
- Virtual VR controllers
Virtual Reality Device Handling
- Add a child node to the node of a VR Controller
- Add a child node to the node of a VR Tracker
- Get a VR device by its serial number
- Print the serial number of all connected devices
- Print the serial number of a device
- Print the current finger position on the touchpad
- Switch the visualization mode of a VR device
- Define and use virtual buttons on the touchpad of a VR controller
- Triggering the vibration functionality of a controller
- Connecting to a signal that is executed, when the controller collides with a node
Virtual Reality Immersive Tools
- Interactive color manipulation in VR
- Adding buttons to the VR Menu
- Moving objects in VR
Virtual Reality Script Plugins
- Showing a flash light in VR
- Gather all users in a collaboration session
- Hide Avatars in a collaboration session
- Measure distances in VR
- Allowing to configure the VR Menu
Virtual Reality Collaboration
- Reacting on joining and leaving users
- Synchronization during a collaboration session
- Visualize user positions
- Query camera and tracking information
Virtual Reality Hands
- Trigger touch sensors with the hands 1
- Trigger touch sensors with the hands 2
- Interact with webengines (calculator demo)
Other Script Plugins
Uncategorized
- Move object with keys
- vrSwitch example
- Movie player demo
- Create cube demo
- Video grabbing example
- Virtual eye example
- Creating touch sensors
Snippets
- accessAttachments
- accessCameraBlendTexture
- accessXRiteMaterial
- convertAllMaterialGroups
- countVisibleNodes
- createMaterial
- ctypestest
- disableVertexCacheAnimation
- selectLightVisibilityReference
- substanceMaterialTools
- tagEditing
- textureAnimation
- toggleNavigationMode
Deprecated Snippets
- (Deprecated) openvr_controller_setup
- (Deprecated) openvr_tracker_setup
Deprecated Virtual Reality Examples
These examples use the deprecated vrOpenVRController
/ vrOculusTouchController
classes. New code should make use of vrdVRDevice
.
- (Deprecated) Oculus touch example
- (Deprecated) OpenVR example
- (Deprecated) OpenVR Tracker
- (Deprecated) Change hand color
- (Deprecated) Use vibration on touch
- (Deprecated) Touch objects in pointing pose
- (Deprecated) Interact with webengines (calculator demo with haptic feedback)
Deprecated Virtual Reality Controller
- (Deprecated) Oculus touch example
- (Deprecated) OpenVR example
- (Deprecated) OpenVR Tracker
Deprecated Virtual Reality Hands
- (Deprecated) Change hand color
- (Deprecated) Use vibration on touch
- (Deprecated) Touch objects in pointing pose
- (Deprecated) Interact with webengines (calculator demo with haptic feedback)