From: Alan L. <al...@li...> - 2004-02-20 07:22:47
|
Hi all, Just started looking at VPython and instantly got confused by the reference manual (!): In one section I read "visible If false (0), object is not displayed; e.g. ball.visible = 0 Use ball.visible = 1 to make the ball visible again." Whereas in another I read "To delete a Visual object just make it invisible: ball.visible = 0 Technical detail: If you later re-use the name ball, for example by creating a new object and naming it ball, Python will be free to release the memory used by the object formerly named ball" So which is it? I tried a test and created a frame with a number of objects, walked the objects attribute setting them to invisible. When I looked at the objects attribute again it was empty - certainly implying the latter case is correct and once I set something invisible I should assume it is gone forever. Is this true? How can I set something to be invisible and then make it visible again without having to reconstruct the object? Tnx Alan --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 |