// Cross-posted from Freebird’s blog.
Freebird v2.2.2 released. It now exposes the states/values of the VR buttons (as custom properties) in FB-Controller-Right
and FB-Controller-Left
(see: XR Tracking Objects).
These values will be updated every frame, when VR is running.
You can use these properties to drive shapekeys, or use them in other scripts:
- To drive a shapekey, please right-click a property, e.g. ’trigger’, and click
Copy as New Driver
. Then right-click on your shapekey value, and selectPaste Driver
. - To use in a script, use the custom property directly. E.g.
bpy.data.objects["FB-Controller-Right"]["trigger"]