WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Vizconnect selection not working in EXE (https://forum.worldviz.com/showthread.php?t=6131)

seowen1 04-23-2018 07:55 AM

Vizconnect selection not working in EXE
 
Hi there,

I have a project where I would like to be able to select the vizconnect configuration file and run the correct platform based on user input. For instance, if the user is running with Oculus, they would select "OCULUS" from a dropdown menu and it would configure the trackers, displays etc.

Here's the code I have:

Code:

#Choose a Vizconnect and GO
platform = ['DESKTOP', 'VIVE', 'OCULUS']
choice = viz.choose("Choose a vizconnect: ", platform)
vizChoices = ['vizconnect_config.py','vizconnect_config_vive.py', 'vizconnect_config_oculus.py']
vizconnect.go(vizChoices[choice])
viz.go()

This works fine when running on the script through testing... but as soon as I try to publish this it breaks for the platforms that it was not run on to test. For instance, if I publish and run selecting "DESKTOP" mode, the resulting EXE will only work for desktop mode.

My first thought was that I need to make sure the export settings are pulling in the other vizconnect_config files that weren't being used. So I did that. Still nothing.

My next thought was that it wasn't importing the proper dependencies that those vizconfig files relied on (i.e. import steamvr, import oculus), so I added those to the export. Still nothing.

I'm a bit lost here. Any help on how to achieve this?

seowen1 04-23-2018 09:02 AM

Solved.

I needed to import the steamvr.dle and the oculus.dle from the Vizard program files folder.


All times are GMT -7. The time now is 10:45 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC