@omz
Dear Omz,
While I found your solution for Multiscene very elegant, I discovered that it does not work when calling variable such as size, bounds or dt.
The reason is that these variables are apparently generate during run.
A solution is to use the following definition
def setup(self):
#print 'bounds', self.bounds
#print self.size
self.active_scene.size = self.size
self.active_scene.bounds = self.bounds
self.active_scene.dt = self.dt
self.active_scene.setup()
def switch_scene(self, new_scene):
self.active_scene = new_scene
self.active_scene.size = self.size
self.active_scene.bounds = self.bounds
self.active_scene.dt = self.dt
new_scene.setup()
with this modification the Multiscene works properly even with the nice example of multilayers with the snake.
Many thanks for all the work