VR/MR and Setup
This section also introduces you to interactions in VR and MR, and how to use various tools and navigate your scene. It also provides requirements, as well as information on HMDs, controllers, and Python scripting, which can be used to implement custom interactions with controllers and trackers.
For additional information, such as a tutorial on VR and MR, see the following:
To ensure you meet the minimum requirements for VR/XR, check the System requirements for Autodesk VRED products for the version you are running.
How to Get the Serial Number For a VR Device
Use the following Python scripts for calling a tracker by a VR device's serial number, creating a node, and attaching the node to a tracker.
- Use
tracker1 = vrDeviceInputMapperService.getVRDeviceBySerialNumber(
serial number)
to identify a tracker by acquiring a serial number for a VR device. - Use
box = vrNodeService.getNodeFromId(createBox(
100,
100,
100,
1,
1,
1,
1.0,
0.0,
0.0,
0.0).getID())
to create a node. - Use
tracker1.getNode().addChild(box)
to attached the node to the tracker. This will be useful when printing out a list of devices by serial number.
How to Print a List of Serial Numbers and Devices
Once you have gone through the steps in How to Get the Serial Number For a VR Device, use the following Python scripts to print a list of VR devices and serial numbers.
Use
devices = vrDeviceService.getConnectedVRDevices()
to generate a list of connected VR devices.Use the following to get a list of device names and device serial numbers:
print(device.getName()) print(device.getSerialNumber())