#1
|
|||
|
|||
Active scene
Hi,
is it possible to ask for the active scene? I want to write an if-query and only want to do actions, if the active scene is scene 2. Thanks a lot.... |
#2
|
|||
|
|||
Yes, the following code should do what you are asking for:
Code:
if viz.MainWindow.getView().getScene() == viz.Scene2: print 'Scene 2 is active' |
#3
|
|||
|
|||
Hey farshizzo,
that's it! Great - thanks a lot.... |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to show different objects on different windows from the same scene | Joran | Vizard | 3 | 07-14-2014 04:07 PM |
Trouble loading a .obj file into a scene through a button | djones1010 | Vizard | 1 | 04-27-2009 12:51 PM |
How to access scene information in a C++ modifier | m7ossny | Plug-in development | 1 | 03-23-2007 12:02 PM |
saving the scene | giancamati | Vizard | 1 | 12-21-2006 10:25 AM |
Collision with avatars and scene not working | JvdBosch | Vizard | 12 | 09-14-2006 07:01 PM |