Print device actions of a device interaction¶
This example shows how to print the names of all device actions that are contained in the default teleport interaction.
vr/printActions.py¶
1# © 2024 Autodesk, Inc. All rights reserved.
2
3# Get an interaction for which the actions should be printed out
4teleport = vrDeviceService.getInteraction("Teleport")
5# Get all actions of the interaction
6actions = teleport.getControllerActions()
7
8# Print all action names
9for action in actions:
10 print((action.getName()))