From: Bruce S. <Bru...@nc...> - 2011-10-12 21:28:11
|
>From the documentation section "Delete an object": To hide a Visual object just make it invisible: ball.visible = False. This does not delete the object from computer memory, and you can make it visible again later. If however 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 (assuming no other names currently refer to that object). If the object is visible when you re-use the name ball, the original object will not be deleted from computer memory, and it will remain visible in the window. After you make an object named ball invisible, you can delete it immediately with del ball. On Wed, Oct 12, 2011 at 2:29 PM, Poul Riis <Pou...@sk...> wrote: > > I have slightly modified the faces_heightfield example in order to add > another surface (see below). > That works fine but how can I get rid of the old surface (not just make it > invisible)? > My long-term-purpose is to make an animation (the zvalues depending on > time). > > Poul Riis |