WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-26-2012, 10:13 AM
mhead10 mhead10 is offline
Member
 
Join Date: Mar 2012
Posts: 40
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!
Reply With Quote
  #2  
Old 03-26-2012, 10:58 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
starting Vizard from a Python script hotspur1 Vizard 12 06-12-2019 12:03 PM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM


All times are GMT -7. The time now is 05:53 AM.


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