DzViewport isVisible??
DzViewportMgr has a bunch of functions like getNumVisibleViewports() but no way to iterate the visible viewports and DzViewport has no isVisible() method.
How do I find out if a viewport is visible?
You currently have no notifications.
DzViewportMgr has a bunch of functions like getNumVisibleViewports() but no way to iterate the visible viewports and DzViewport has no isVisible() method.
How do I find out if a viewport is visible?
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2026 Daz Productions Inc. All Rights Reserved.
Comments
Can't you use https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/viewportmgr_dz#a_1abcc22d71014c338e8d0886ba648de29e to iterate? Dz3DViewport derives from QWidget, which has a Visible Boolean proeprty - does that work? https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/widget_q#a_1a6625792991e0f1795beccab6832d8b3d
Yes and no. It says if they are "on screen". But if the viewport panel itself isn't visible (I put the viewport and the script IDE in the big center panel space. Had to move it to test this.), they all return false. And I've trying to find which viewports are part of the current view.
What I'm trying to figure out is which viewports (Dz3DViewports) of the 5 that always exist are the viewports seen in the panel. In single viewport, only one should be visible. In side-by-side, 2 would be visialbe. If aux viewport is visible, it should add to the count. I'd rather not rely on the 5th entry in the array is "always the aux".
Or I'm just over thinking it. And Daz just statically allocates them and they always exist.