Message 1 of 2
VRED Reset to default interactions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was messing with custom interactions and at some point deleted/removed the defaults running the code below. How do I reset it all back to the defaults? I don't see any option to just restore all of the default interactions/actions groups to the connected devices.
print(vrDeviceService.getActiveInteractionGroup())
print("Changing active interaction group")
resetInteraction = vrDeviceService.createInteraction("resetInteraction")
resetInteraction.setSupportedInteractionGroups(["resetGroup"])
vrDeviceService.setActiveInteractionGroup("resetGroup")
for interaction in vrDeviceService.getInteractions():
print("deactivating interaction: " + interaction.getName())
vrDeviceService.deactivateInteraction(interaction.getName())
#Remove any actions
for action in interaction.getControllerActions():
print(action.getName())
interaction.removeControllerAction(action)
print("removed.")
#Remove any action groups
for actionGroup in interaction.getSupportedInteractionGroups():
interaction.removeSupportedInteractionGroup(actionGroup)
#Remove interaction
vrDeviceService.removeInteraction(interaction)
What's the easiest way to reset my controllers to their default interactions after deleting them?
Thanks!