Hello,
I'm upgrading a videoPostData plug-in to the newest SDK version.
With R22, my plug-in Execute
method was called each time the user changed the scene (move a mesh, play timeline, ...).
With 2023.2.2 and with the same code the Execute
is only called after a render.
RENDERRESULT MyPlugin::Execute(BaseVideoPost* node, VideoPostStruct* vps)
{
ApplicationOutput("I want to be called at each editor-window change");
if( vps->vp == VIDEOPOSTCALL::RENDER && !vps->open && *vps->error == RENDERRESULT::OK )
{
VPBuffer *rgba = vps->render->GetBuffer(VPBUFFER_RGBA, NOTOK);
// ...
}
return RENDERRESULT::OK;
}
How can I restore this behavior with the new SDK?
As reference, the behaviour I'm looking for is the same as the current "Sketch and Toon" effect when you enable "ViewportDisplay/Show Lines" in the effect settings.
macos 13.4.1
C4D 2023.2.2
C++ SDK
Thanks for your help