|
From: Bruce S. <Bru...@nc...> - 2007-05-30 18:03:35
|
From the Visual reference manual (on the Help manual in VPython): ------------------------ Another frame attribute is objects, which is a list of currently visible objects contained in the frame (the list does not include objects that are currently invisible). If you want to make all the objects in a frame be red, do the following (assume the frame is named f): for obj in f.objects: obj.color = color.red If you use this method to make all the objects invisible, the f.objects list will be empty. If you need a list containing all the objects, both visible and invisible, you need to maintain your own list of objects. -------------------------- In the new beta version there is this new feature: "You can now make a frame visible or invisible, and all objects in the frame will be affected. And you can set the vector "scale" attribute of a frame to change the size of the combined object." Bruce Sherwood Theo DuBose wrote: > Hello, > > I have noticed what appears to be a bug when dealing with frames and > visibility. If I make all the objects in the frame disappear, with > > for obj in a.objects: > obj.visible = 0 > > and then attempt to make the objects reappear with > > > for obj in a.objects: > obj.visible = 0 > > They do not appear. Is this a known, or does anyone have any > suggestions? Presently I am overcoming this by reinstantiating the > invisible objects, but i would like to be able to reduce the amount of > memory this uses. > > Thanks, > Theo > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |