I find I actually have to setup all my optionVars in a userSetup.mel
I've messed with it a lot and that seems to be the only way to make it
stick. I could have missed something.

On May 18, 2:03 am, Ozgur Yılmaz <[email protected]> wrote:
> 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 Directorwww.ozgurfx.com
>
> --http://groups.google.com/group/python_inside_maya

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

Reply via email to