Skip to content

Measuring Tape

Measuring Tape Tool

The measuring tape tool can be used to measure objects (either in VR or AR). See the ExampleScripts-measuring_tape_test.py script. To add this to a new script, use this code.  

measuringTool = vizconnect.getRawTool("measuring_tape")



def setStartWall(e):
    measuringTool.setStartWall()


viz.callback(viz.getEventID("measuringToolStart"), setStartWall)



def setEndWall(e):
    measuringTool.setEndWall()


viz.callback(viz.getEventID("measuringToolEnd"), setEndWall)

This tool is currently added to the Meta Quest Pro, Quest 3, Quest 2  and Desktop vizconnects. The rest will be added in the near future, but to add this to a new vizconnect, either send an email to support@worldviz.com  or see these steps to add this to any of your vizconnect files.  (in sightlab_utils/vizconnect_configs). 

To add or verify follow these steps:

  • Double click to open vizconnect file and choose option 3 for "Advanced"
  • Go to the Tools tab and click "Add a New Tool" and select "Measuring Tape" and then "Apply and Exit" * Next go to the "Events" tab and add two new events, call one measuringToolStart and the next measuringToolEnd
  • Click on the Mappings button and choose whichever buttons or inputs you want to use to trigger the start of the measuring tape and the end
  • Now you can run the code shared earlier to utilize this tool