WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 01-26-2005, 11:24 AM
jkelly jkelly is offline
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')
myLine = viz.endlayer(myObject)

This did not work, however. Can you suggest a better way to do this? Thanks.
Reply With Quote
Old 01-26-2005, 11:26 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

What you did should work. Are you using an older version of Vizard? Either way, the following will work also:
myLine = viz.endlayer(
Reply With Quote
Old 01-26-2005, 11:30 AM
jkelly jkelly is offline
Join Date: Jun 2003
Posts: 7
That works great. I am using 2.17a, which is probably the problem.


Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:01 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC