![]() |
|
#1
|
|||
|
|||
Hi,
The interactive window and the script have always been in separate interpreters (or scopes). However, there is a significant difference between 2.x and 3.0. In 2.x, when you ran a script, it would first be executed in the same interpreter as the interactive window. This first execution would initialize all your global variables. Then the script would be launched in a separate process with its own interpreter. This first pass would pollute the interactive interpreter with all the global variables of the script. Vizard 3.0 bypasses this first execution and immediately launches the script in a separate process. You can still type commands in the interactive window, but only while your script is running. The interactive window is actually more powerful in 3.0, because you can modify global and runtime variables in your running script, which you previously couldn't do in 2.x Are you trying to access the variable "x" after the script has finished? If so, this won't work in 3.0. Even though it did work in 2.x, the functionality wasn't very useful, because the value would not reflect any changes that were made at runtime. Hope this helps. Also, in the future please post Vizard 3.0 related questions in the 3.0 forum. |
![]() |
|
|