View Single Post
  #4  
Old 04-15-2010, 10:58 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Seems this is a common need, to have some sort of "control view" while the user simulation is doing its thing.

We can do this by running a second Vizard program on the same computer. The Vizard programs can communicate via Vizard's networking features.

I've attached a zip with two sample scripts. The sending.py script sends a message to the receving.py script via Vizard's networking feature. The target computer for each script's network object is the localhost, the computer the script is running on. The receving.py script gets the message.

Run both scripts by double clicking on them in windows. Then press the space-bar when the sender.py vizard window is in focus.

This setup does not support two way communication. I think fiddling with the network ports each script is listening on will solve that.
Attached Files
File Type: zip localVizardAppCommunication.zip (811 Bytes, 786 views)
__________________
Paul Elliott
WorldViz LLC
Reply With Quote