Notifications
Clear all

[Closed] Dialog with Embedded Camera Viewport– no active camera required

Ok… so I continued playing with the script and decided to try using the render() method rather than copying the bitmap using the gw.getViewportDIB() method. It seems to work well.

A couple of issues I noted:
(1) Animation playback and rendering doesn’t let user stop the animation normally– user must press ESC key… so I scripted the playback property to not loop.
(2) Lighting in the embedded camera view is dictated by the default lighting of the active viewport… this can be overcome by using a custom light setup.
(3) Other issues TBD…

It seems rather responsive– both transforming the scene objects or scrubbing the timeline. One piece I’m dubious about is my attempt to simulate an ESC key press ( I don’t think I have that working correctly).

Please post any improvements for the benefit of all.

Thanks,