I think it is indeed the case that there isn't any way to add an
existing object to a frame. I'm also not quite sure what it would
mean, or what the syntax would look like, since the point of a frame
is that coordinates are relative to the frame. How should the existing
coordinates be interpreted when adding to a frame?
As for making all objects in a frame invisible by scene.frame.visible
= 0, the fact that this doesn't work is in fact a bug and is on the
bug list in the VPython project at sourceforge.net. You can achieve
the effect however by looping through the objects:
f = frame()
ball = sphere(frame=f)
carton = box()
for obj in scene.objects:
if obj.frame is f:
obj.visible = 0
|