first of all I don't know if it is the correct way to do it...

under pymel 1.0.2 and Maya 2011 in kubuntu 64bit, in userSetup.py, I'm
setting an optionVar by using:

pm.optionVar['MIP_SHD_EXPOSE'] = 1 # ( to enable the hidden mentalray
shaders )
pm.runtime.SavePreferences() # to save the prefs

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 ?

E.Ozgur Yilmaz
Lead Technical Director
www.ozgurfx.com

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to