07 July 2012 | |
![]() |
|
Guest
|
Optimized Textures Location with Python
Hi,
Do you know how in python i can : - Switch the "Optimized Textures location' from 'sourceimages/cache' to 'Custom Location' ? - Toggle On/Off 'Use Optimized Textures(auto-conversion)' All i could figure for the moment is to change the texture location :
If a MEL solutoin exist, i'm still interested. I don't want to go over 25 machines and set up this each time. Wanted to include it in a userSetup... Thanks |
07 July 2012 | |
![]() |
|
student
portfolio
fghajhe
United States Minor Outlying Islands
|
There is a mel script for changing texture directories thats pretty awesome :
http://www.creativecrash.com/maya/d...etexturemanager It might be of help. |
07 July 2012 | |
![]() |
|
Guest
|
I know FileTextureManager but it's not really what i'm looking for.
I want to make couple of Maya preferences action through script...take a look at my first message |
07 July 2012 | |
![]() |
|
Know-it-All
robert
austin,
USA
|
You are on the right track.
Have you tried searching through the userPrefs.mel file for the specific name of the optionVar to control enabling/disabling optimized textures? a quick search yields:
|
07 July 2012 | |
![]() |
|
Guest
|
Yeah thanks for the input rgkovach123
So these lines works even if it doesn't update the Maya interface...bit lame though... Here are the lines, if someone got interested by this too, it's pretty handy to setup many machines using .map at a same location with a single shared userSetup.
Last edited by sonicstrawbery : 07 July 2012 at 03:06 PM. |
07 July 2012 | |
![]() |
|
Know-it-All
robert
austin,
USA
|
updating the UI and setting the optionVars are two different operations. To keep them in sync, you would need to manually update the UI.
Maya usually modifies these types of values through MEL scripts that handle both updating the prefs and providing the UI with the new data. |
07 July 2012 | |
![]() |
|
Expert
|
Thread automatically closed
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.
__________________
CGTalk Policy/Legalities Note that as CGTalk Members, you agree to the terms and conditions of using this website. |
Thread Closed share thread |
«
Previous Thread
|
Next Thread
»
|
|
|