I wrote a viewport plugin for a custom effect and wanted to preview it in playblast with a moving camera view. But I found that the video generated by playblast is always the first frame.
I checked the plug-in code and found that the problem lies in the cameraOverride function of MHWRender::MSceneRender I wrote. M3dView cannot get the modelViewMatrix of each frame during playblast, and it always returns the data of the first frame.
The examples in devkit also have no related cases to refer to.
I tried to call the refresh method of M3dView before getting the matrix, maya will be stuck.
Does anyone have experience with this? What is the solution to this problem?