WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How are files associated/how should they be saved (python script + images) (https://forum.worldviz.com/showthread.php?t=4179)

mhead10 03-26-2012 10:13 AM

How are files associated/how should they be saved (python script + images)
 
I'm confused where the main python files and associated files (pictures) are stored and accessed from. I would appreciate knowing for instance, why the duckcourt demo files are not all in the same folder- it seems the main python script is in an examples folder, while the pictures associated with the script are located in a "duckcourt" folder in an "examples" folder instead of "resources".

When I modify the duckcourt demo by creating a new folder in the examples folder, and then paste in the duckcourt demo, the images don't all load correctly. Therefore, I'm obviously confused on how Vizard accesses, and thus how I'm suppose to "store" all of my files.

Furthermore, if I create a folder on my desktop an place my main python script with associated pictures in the folder, Vizard does not correctly load the pictures (failed to load error).

Your help is appreciated! Thanks!

farshizzo 03-26-2012 10:58 AM

Vizard will search the script directory first when looking for resources (images, models, plugins, etc..). If the file is not found there, then it will search for it on the Vizard resource path. By default, the resource path includes the resources directory found in the Vizard installation folder. All the example resources that come included with Vizard are found here.


All times are GMT -7. The time now is 09:08 PM.

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