- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i had some problems with vrOpenVRController in older VredVersions but with VredPro 2020.3 it has changed. There is now no teleport function in vr any more after executing following script which creates the controller and connects to moved-Signal. HTC-VivePro with viveControllers
from functools import partial
def controllerMoved(_name, _ctrl):
tempMatrix = _ctrl.getWorldMatrix()
if tempMatrix != [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]:
print _name + ' ' + str(_ctrl)
tempcontrollers = dict()
tempcontrollerNames = ['GenericTracker0', 'GenericTracker1', 'GenericTracker2', 'GenericTracker3', 'GenericTracker4', 'GenericTracker5', 'GenericTracker6', 'GenericTracker7']
for tempControllerName in tempcontrollerNames:
tempController = vrOpenVR.vrOpenVRController(tempControllerName)
tempcontrollers[tempControllerName] = tempController
tempController.connectSignal('controllerMoved', partial(controllerMoved, tempControllerName, tempController))
Something wrong with the script?
Best regards,
Marc
Solved! Go to Solution.