Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting attributes when starting Maya

1 REPLY 1
Reply
Message 1 of 2
oxm
Enthusiast
165 Views, 1 Reply

Setting attributes when starting Maya

Hello,
I have a question about the automatic setting of attributes when starting maya.
I have the following problem. I work from home on a Macintosh. Our render computer, a PC, is in the company.
Every time I transfer render files from the Mac to the render PC, I have to tick "Refraction Affects Alpha Channel" in the rendersettings/system on the PC. This setting option is not available on the Mac. If I don't tick the box, the transparencies render incorrectly.
The tick is not set by default.
My question now is: Is there a possibility (I'm sure there is) that this tick is automatically set when Maya is started? I think i have to do it in the Maya_env file, but if i integrate the code

"setAttr "redshiftOptions.enableLegacyRefractionAffectsAlphaChannel" 1;"

nothing happend, when i start Maya

Can someone tell me how to do this on the PC?

By the way: i'm rendering with redshift

 

Thank you

1 REPLY 1
Message 2 of 2
mspeer
in reply to: oxm

Hi!

 

You need to create a userSetup.mel and then enter the MEL code there, it won't work in the Maya.env .

https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=GUID-F3D60949-2372-47F5-B8D6-78D73F78D587

However in case it does not work, cause Redshift is not fully at this time, you can use a scriptJob to execute the MEL command whenever a scene is opened.

https://help.autodesk.com/cloudhelp/2024/ENU/Maya-Tech-Docs/Commands/scriptJob.html

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report