I'm not sure of the exact calling function which generates everything, so maybe there is a way to get it to update everything in the current session, but one way would be to set that optionVar and unload/reload the mentalRay plugin which will trigger the rebuild.
>> I saw it is saved to the preferences when I exit Maya, and it effects when I >> restart maya but it is not affecting the first session I run the code... >> >> Is there any other way to make it apply also to the current session ? >> -- http://groups.google.com/group/python_inside_maya
