#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Hi farshid,
Thanks for your answer, I did not know that the [anchor] argument was necessary David |
#4
|
|||
|
|||
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 |
#5
|
|||
|
|||
Hi David,
Sorry about that. It is already fixed in the newest version. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|