- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a MaxScript tool that retrieves the render camera using the following code:
This works only as long as the viewport layout stays the same.
If a colleague changes the viewport configuration (for example switching from 1 view to 4 views), then the viewport indexes change, and rendViewIndex no longer points to the same viewport.
This causes two problems:
The script sometimes throws an error because the index no longer corresponds to a camera viewport.
In other cases it returns a completely different camera, because another viewport now occupies that index.
Is there a more reliable way to get the active camera via maxscript? Or do I have to tell my team to only work in one viewport layout? I haven't found any other method so far..
Solved! Go to Solution.