query render globals?
How can I query the render globals? I need to access the resolution and aspect ration.
Thanks. |
That's a bit tricky one. First you need to find out what renderer is set to be used and then you need to find out from where those settings are coming. They've really mixed this up when they introduced the new render global system with the common and renderer specific settings... So honestly I don't know :)
|
(NOTE: I'm going to type out all the commands for the sake of anyone relatively new to MEL.)
You'll want to look at the scene node called "defaultResolution". You can verify its existence with this command: Code:
ls -renderResolutions; Code:
listAttr defaultResolution; Code:
getAttr defaultResolution.width; Code:
$width = `getAttr defaultResolution.width`; |
That looks like it's just what I'm looking for. Thanks Danny.
|
All times are GMT. The time now is 03:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018