Is there a time delay to the lighting manager being instantiated when a figure is set up?
In ipython the following lines work fine
fig = mlab.figure(browser=False)
fig.renwin.light_manager.lights[0].move_to(0,-45)
But this doesn't
fig = mlab.figure(browser=False);fig.renwin.light_manager.lights[0].move_to(0,-45)
In the noninteractive mode (i.e. running a script as opposed to typing in commands in the shell) even the first version does not work. I tried inserting a delay (time.sleep()) but that does not help
l = light_manager.CameraLight(fig.renwin)
l.move_to(0,-45)
In ipython the following lines work fine
fig = mlab.figure(browser=False)
fig.renwin.light_manager.lights[0].move_to(0,-45)
But this doesn't
fig = mlab.figure(browser=False);fig.renwin.light_manager.lights[0].move_to(0,-45)
In the noninteractive mode (i.e. running a script as opposed to typing in commands in the shell) even the first version does not work. I tried inserting a delay (time.sleep()) but that does not help
l = light_manager.CameraLight(fig.renwin)
l.move_to(0,-45)
Comments
Post a Comment