See this page in the Vizard Documentation on how to publish your SightLab script as an executable if you wish to distribute it to users who are not running Vizard.
Note this is currently only supported for non-GUI single user scripts
For publishing executables with the interactive replay you may need to also share your Resources/environments (or Resources/media for 360 media) folder, or whatever folder has the assets you are using.
You will also need to make a separate executable of the SightLabVR_Replay file and copy that to the folder with your exe to use the replay.
To choose which vizconnects (hardware configurations) to show for the hardware configuration dropdown add this code. To see the available options see the settings.py file
#Add before importing sightlabfromsightlab\_utilsimportsettingssettings.VIZCONNECT\_CONFIG\_LIST= \['Desktop',''MetaQuest3'']
See ExampleScripts\PublishExe in the SightLab ExampleScripts Directory for publish exe examples
Make sure to run from the Vizard IDE with File- Publish as Exe
Data files will be saved to the folder you run the exe from
Drag "data" folder into the screen where it prompts for any missing files
Example
Add the published directories
# =============================================================================# PUBLISH CONFIGURATION - Must be BEFORE any sightlab imports!# =============================================================================importviz# Filter out problematic packages that cause issues in published EXEviz.res.addPublishFilter('*google_generativeai*')viz.res.addPublishFilter('*-nspkg.pth')viz.res.addPublishFilter('*.pth')# Add publish directories - ensures correct package versions are bundledpublish_directories=['data',viz.res.getVizardPath()+'bin/lib/site-packages/sightlab_utils/',viz.res.getVizardPath()+'bin/lib/site-packages/deepdiff',viz.res.getVizardPath()+'bin/lib/site-packages/numpy',viz.res.getVizardPath()+'bin/lib/site-packages/pandas',]fordirectoryinpublish_directories:viz.res.addPublishDirectory(directory)
Session Replay EXE (Note: Any environments or assets that may be used with the Session Replay will need to be included in the exe)
Use this for published directories, where the Resources/environments is the name of where your assets for 3D models are or Resources/media for 360 media
Additional built in options related to publishing can be modified in the sightlab_config.py file in sightlab_utils (C:\Program Files\WorldViz\Vizard\<version>\bin\lib\site-packages\sightlab_utils)