Render Setting - I want to know the mel command to switch to Render Elements tab.

Render Setting - I want to know the mel command to switch to Render Elements tab.

tjdrbrla
Advocate Advocate
508 Views
4 Replies
Message 1 of 5

Render Setting - I want to know the mel command to switch to Render Elements tab.

tjdrbrla
Advocate
Advocate

 

I can do the command to turn on the render setting window by myself, but I can't find the command to switch to Render Elements Tab. Could you tell me through Mel command?

 

 

 

tjdrbrla_0-1674994920232.png

 

0 Likes
Accepted solutions (1)
509 Views
4 Replies
Replies (4)
Message 2 of 5

Kahylan
Advisor
Advisor

Hi!

 

Can I ask why exactly you need to open this rendersettings tab via a script? What is the endgoal?

 

Addressing the rendersettings window is quite challenging especially with external and older renderers like Vray. Maybe whatever you want to do can be done without using the UI?

0 Likes
Message 3 of 5

tjdrbrla
Advocate
Advocate
Hi~
I created a command to add channels for Render Elements through the mel command, and when I used it, the Render Settings window turned on, but I wanted to switch to the Render Elements tab and check it.
It wasn't that important because it was just for checking. I thought it was simple because it's switching tabs to render setting. You don't have to tell me if it's hard. Thank you for telling me.
0 Likes
Message 4 of 5

Kahylan
Advisor
Advisor
Accepted solution

I did some tests and I found the command to do this:

setAttr  -type "string" "defaultRenderGlobals.currentRenderer" "vray";
unifiedRenderGlobalsWindow;
tabLayout -e -selectTab "vrayRenderElementsTab" "vrayTabLayout";

 

luckily vray tabs are named uniquely so there wasn't the usual problem with mayas automatic namegeneration in the unifiedRenderGlobals that can cause problems with some renderers.

 

I hope it helps!

Message 5 of 5

tjdrbrla
Advocate
Advocate
Hello!
Thank you~! You did exactly what I wanted!
You're so cool.
Thanks to you, it's settled.