View Single Post
  #1  
Old 01-26-2005, 11:24 AM
jkelly jkelly is offline
Member
 
Join Date: Jun 2003
Posts: 7
hierarchicy with on-the-fly objects

I am interested in creating an on-the-fly object , and adding it to a hierarchy with a vrml object as the root. Is there a way to indicate in the viz.endlayer() command that it should be attached to an already-existing object? I tried the following:

myObject = viz.add('object.wrl')
viz.startlayer(viz.LINE_LOOP)
viz.vertex(0,0,0)
viz.vertex(0,1,0)
myLine = viz.endlayer(myObject)

This did not work, however. Can you suggest a better way to do this? Thanks.
Reply With Quote