I'm in the process of adding a renderer to the viewport of C4D and I wanted some clarity on functions I should be looking into. I've gathered that I need to make a VideoPostData plugin, and I've used Execute pixel to blanket the viewport in red on hitting the render in viewport button. I also discovered that I could use
to add items to the Viewport menu. I'd like to have the user be able to turn my renderer on and off similar to Prorender and draw interactively in the viewport. What documentation, functions, or examples should I be looking into to achieve this?