Here's an example of a program that,
first, copies objects between displays,
then updates the copied objects periodically.
http://physics.syr.edu/~salgado/software/vpython/copyobjects-example.py
However, to make this work, I had to understand a subtlety in the
copyobjects() function on
http://www.vpython.org/webdoc/visual/options.html .
The following program demonstrates this.
http://physics.syr.edu/~salgado/software/vpython/copyobjects-subtlety.py
Essentially, I believe copyobjects() should traverse the
source-display's list in reverse as it builds up the destination-display
so that the items in the destination list of objects
are in correspondence with those of the source list.
With this, my naively written updatecopyobjects() function works.
Rob Salgado
|