View Full Version : Detect if Mental Ray Plugin is enabled
Jocose 09-04-2009, 05:20 AM Is there any way to check and see if the MR plugin is enabled in Maya? I have a script that wont work unless it's enabled and if it's not I want to tell the user.
|
|
Animasta
09-04-2009, 05:29 AM
Click on Window>Settings/Preferences>Plug-in Manager and scroll down until you see Mayatomr.mll. There are check boxes, one to load the plugin, and one to auto-load it upon launching Maya.
Jocose
09-04-2009, 06:08 AM
Sorry I didn't clarify. I was talking about doing this in MEL. I need to detect this in script.
r4inm4ker
09-04-2009, 07:25 AM
if(!`pluginInfo -query -loaded -name "Mayatomr"`)
loadPlugin "Mayatomr";
Jocose
09-05-2009, 12:48 AM
Thanks, that worked.
CGTalk Moderation
09-05-2009, 12:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.