The RenderEvent event fires when the rendering has reached the quality that was specified when the rendering started. This event is only fired when using advanced rendering (the isAdvanced property is True). To save the finished rendering, use the saveImage method.
You can add or remove event handlers from the RenderEvent.
-------- Import ---------
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler function definition ---------
|
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler class definition ---------
|
--------- Required include files. ---------
--------- Event handler class definition and global declaration. ---------
class MyRenderCompleteEventHandler : public adsk::fusion::RenderEventHandler { public: void notify(const Ptr<RenderEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyRenderCompleteEventHandler event handler."); } } _renderComplete; --------- Connect the handler to the event. ---------
|