Hi Everybody,
Does anyone know of a way to force the viewport to redraw? Even if from python? I tried "hou.ui.triggerUpdate" but no to avail.
I've tried calling DM_VPortAgent::doRender(REgetMainRender(), view_width, view_height). Which does call DM_SceneHook::render.
I've also tried REgetRender(), but nothing happens until the next time a state updates the viewer and it just renders the first frame blank, usually minus what the scene hook renders.
My thought is that RegetRender() is not the "current renderer" though in the grand scheme of things I really have no frame of reference for what that means. I attempted to use REgetMainRender().createNewRenderContext() but that just crashes even though it's not null, if I remember correctly. I also tried some more out there stuff like creating an FBO, flushing the renderer, swapping the frame etc, etc. Usually nothing happens.
Is it possible to force a redraw from a DM_MouseHook?
I just found the section in the Docs about DM_MouseHook is does seem to imply this is the correct usage, I am missing something really simple?