Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Query render layer resolution?

Query render layer resolution?

Anonymous
Not applicable
781 Views
0 Replies
Message 1 of 1

Query render layer resolution?

Anonymous
Not applicable

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.

0 Likes
782 Views
0 Replies
Replies (0)