WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Same code in different files but one not working (https://forum.worldviz.com/showthread.php?t=1014)

tacbob 03-02-2007 12:53 AM

Same code in different files but one not working
 
Why is it that I can copy code from one vizard file that works fine, into a new file where it does not work???

farshizzo 03-02-2007 09:20 AM

Can you post an example? Are you getting an error message? If so, what is the error? Did the code you copy reference a global variable that didn't exist in the new file? This could very well be the case if the original script used the GUI stage to add files. I'm afraid there is not much I can do without more information.

tacbob 03-05-2007 06:40 AM

The code I copied was the entire script from one file that worked - pasted into a new blank file that did not work.

Thanks

farshizzo 03-05-2007 09:30 AM

What do you mean by "did not work"? Were there error messages? If so, please post them. Did some resource fail to load? Are you saving the new script in a different directory? The original script might depend on a resource in the local directory, and when you move the file it won't be able to find it anymore. Also, can you post the contents of the .viz file of the original script?


All times are GMT -7. The time now is 07:13 AM.

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