Share

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.

learnMore icon For additional information, such as a tutorial on VR and MR, see the following:

Important:

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.

  1. Use tracker1 = vrDeviceInputMapperService.getVRDeviceBySerialNumber(serial number) to identify a tracker by acquiring a serial number for a VR device.
  2. Use box = vrNodeService.getNodeFromId(createBox(100,100,100,1,1,1,1.0,0.0,0.0,0.0).getID()) to create a node.
  3. 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.

  1. Use devices = vrDeviceService.getConnectedVRDevices() to generate a list of connected VR devices.

  2. Use the following to get a list of device names and device serial numbers:

    print(device.getName())
    print(device.getSerialNumber())

Was this information helpful?