Auto Shader
The Maya Auto Shader tool is a Python script that allows you to easily attach texture maps to any object in the scene. The tool supports attaching maps of types :
- base color
- metalness
- specular
- normal
Installation steps
Unzip the compressed file Put script file in Maya scripts folder :C:\Users\[YourUserName]\Documents\maya\[MayaVersion]\scripts
Replace [YourUserName] by your username.Replace [MayaVersion] by your maya version (eg 2022, 2023,...)
Click on the script editor button
Click on File > Open Script ,then choose the script Save the script to a shelf button by selecting File > Save Script to Shelf... and choose the shelf name to save the button to.
Now, you have a button to apply a texture to any shapes Once you've saved the script to a shelf button, you can easily access it from within Maya by clicking on the button on the shelf. You can also customize the button by right-clicking on it and selecting "Button Editor", where you can change the name, icon, and other properties of the button.
Usage steps
Click on the new shelf you just created Add/select a shape in your scene to apply texture on Insert regex pattern to automatically find the textures and the folder name by clicking on the button "..." and choose the right directory, where your textures are located.
There are multiple filter fields :
- map_prefix : the prefix of the map(s) you are looking for
- map_suffix : the suffix of the map(s) you are looking for
- map_type : the extension of the map(s) like .png, .jpg, etc..
Click on Apply textures button