Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My script needs to work in the viewport which has the only camera assigned to it in the scene, but this may be a viewport in a different viewpanel than the default opening state of the scene.
Right now I'm creating an array of visible viewpanels and then loop over the viewports in each panel until I find my camera when getActiveCamera() returns 'true', I'll set that viewport to active. Seems super clunky, loops within loops.
Is there a more direct version?
Solved! Go to Solution.