Attach geometry node to VR hand?

Attach geometry node to VR hand?

patrik7LNB2
Contributor Contributor
549 Views
2 Replies
Message 1 of 3

Attach geometry node to VR hand?

patrik7LNB2
Contributor
Contributor

Trying to constrain/attach a Scenegraph node to a tracked VR hand using vrConstraintService.createParentConstraint(), but it doesn't seem to want to take the VR hand object as an argument. Suppose that function only works with Scenegraph nodes.

 

Purpose is to be able to move an object with a tracked hand.

 

Is there any way of constraining a Scenegraph node to the transform of a tracked VR hand?

0 Likes
Accepted solutions (1)
550 Views
2 Replies
Replies (2)
Message 2 of 3

__daniel.lincoln__
Alumni
Alumni
Accepted solution

Hello,

There is an example script in ~examples/vr/attachToController.py that also works for Tracked Hands.

 

Regards,

Dan

0 Likes
Message 3 of 3

patrik7LNB2
Contributor
Contributor

Thanks, works now. 🙂

 

Another problem though: I only want the Vset script constraining the target to the constrained object to be active as long as I "touch" the touch sensor that triggers the Vset. Tried figuring out how to check if the sensor is active but can't really understand how to use the vrTouchSensor module. Maybe that's not the way to do it. Isn't there just a setting somewhere allowing for Touch Sensors to deactivate once you end overlap? 🙂

0 Likes