Page 1 of 1

Reload all textures in a Material?

Posted: Sun Sep 06, 2015 5:36 pm
by itsallgoode9
Is there a way we can reload all textures in a material/mix material at once? It's pretty cumbersome and error prone to have to manually reload each texture in a material when you update textures/masks. For example, right now I have a mix material which has like 10 textures in it and every time I adjust the textures/masks, I have to find all 10 textures in the hypershade and manually reload. 7/8th of my time is spent finding/selecting textures and hitting reload. SERIOUS waste of time.

If not possible right now, is there a way to add that option somehow? I don't know MEL or Python very well, but that should be able to be done pretty easily that way, correct? Even though that's somewhat of a Band-Aid it if someone has a script like that, it would be helpful.

Re: Reload all textures in a Material?

Posted: Wed Sep 09, 2015 8:01 am
by blackshore
What do you mean by reload?
Is your texture path changed or did you update the files and the shader does not update?
If the path haven't been changed you can restart maya. It should then reload all textures.
If the path have changed then you'll need to script or a plugin that does that.

Re: Reload all textures in a Material?

Posted: Wed Sep 09, 2015 8:09 am
by itsallgoode9
I just mean refresh the texture loaded into a material once I make an adjustment in photoshop. If I don't manually reload the texture (right click on texture->reload or press the "reload" button in the texture node) it doesn't update in the render.

Re: Reload all textures in a Material?

Posted: Thu Sep 10, 2015 6:41 am
by blackshore
http://www.creativecrash.com/maya/scrip ... e-reloader
You might need to edit the mel somewhat