Query render layer resolution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm kind of banging my head against the wall with what seems like a very simple problem.
In python im trying to iterate through all the render layers and detect their resolutions.
If use use getAttr('defaultResolution.width') it only gets the resolution of the layer currently selected even with resolution overrides. Im trying to avoid having to switch to the defaultRenderLayer to run this command because if you are in a heavy scene this can take a very long time or crash maya.
i have also tried getAttr('layer1.adjustments[0].value()) but this only works if an overrided exists already.
This all gets trickier with vray because vraySettings.width is also thrown into the mix that you must detect from the layer adjustment plugs.
Does anyone know how to iterate through every render layer and detect the resolution with overrides or not?
Thanks so much.