Given data exported from another application, I have written a set of scripts that create a Maya scene file.
Want to do equivalent of Render Settings (mental ray) > Indirect Lighting > Physical Sun and Sky [Create].
Script Editor > Echo All Commands shows that this does:
PROBLEM:
That command does not exist until the mental ray plug-in is fully initialized.
In older versions of Maya, that happened when the app started?
Regardless, In 2014, plug-in doesn't fully initialize until user does some GUI action that requires mental ray
(or a render is performed).
I am examining mel files in C:/Program Files/Autodesk/mentalrayForMaya2014/scripts trying to find what call triggers the initialization. Haven't found it yet.
Also looked at Mayatomr: didn't see any obvious solution. And tried "miCreateDefaultNodes;", since that command does exist.
The goal is to have a script that can completely create and initialize a new scene, including calls such as miCreateSunSky and miUpdateSkyCameras mia_physicalsky1, without user intervention.
Ideas?