Looking for a way to get screenspace bounding box coordinates straight from Maya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I was hoping someone might be able to help me with this problem. I'm working with a client that is requesting renders that have bounding boxes drawn around specific rendered objects in a scene, but in 2D screenspace. This is with an animated camera with thousands of frames, so it's not so simple as doing it by hand unfortunately. The objects are all different sizes and oblong as well so the bounding box will change dimensions every frame. They also want the coordinates of said bounding boxes exported into either a JSON or CSV format (so basically a series of 4-corner coordinates per frame).
I have limited scripting knowledge but I was hoping someone might be able to point me in the right direction. The best I have been able to do is using the autocrop option in Arnold's exr output to at least give me the right format/bbox, but that is a very painstaking process since I have to separate out each element into a separate render layer (and there's a quite a lot of objects/scenes).
Thanks!