WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-19-2003, 12:07 PM
david david is offline
Member
 
Join Date: Mar 2003
Posts: 23
switching between scenes

hello,

I am trying to switch between different scenes in vizard but even with the very basic following lines I do not see anything on the screen. What is the correct way to use the setscene command?____________________________
import viz

viz.go()
viz.setscene(1)
a = viz.addchild('tut_sphere.wrl',1)
____________________________

Thanks
David
Reply With Quote
  #2  
Old 06-19-2003, 12:20 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi David,

The second argument of the addchild command is the anchor, the third argument is the scene. So in your case you need to do

a = viz.addchild('tut_sphere.wrl',viz.WORLD,1)

Hope that helps,

Farshid
Reply With Quote
  #3  
Old 06-19-2003, 12:26 PM
david david is offline
Member
 
Join Date: Mar 2003
Posts: 23
Hi farshid,

Thanks for your answer, I did not know that the [anchor] argument was necessary

David
Reply With Quote
  #4  
Old 07-01-2003, 01:02 PM
david david is offline
Member
 
Join Date: Mar 2003
Posts: 23
Unhappy Can't use a scene number higher than 2

BTW,

I tried using scene number between 3 and 6 but vizard simply crashes... Any thoughts?

David
Reply With Quote
  #5  
Old 07-01-2003, 07:05 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
Hi David,

Sorry about that. It is already fixed in the newest version.
Reply With Quote
Reply

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 08:32 PM.


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