Python and MEL Scripts

Python Script to check if textures are optimised for 3d - texture_validator.py
Checks for non power of two and non square power of two textures.
Great for checking and optimising projects with large numbers of textures.
https://app.box.com/s/qifws7jlzrxxgcr5gllq5wk2u0koloi0

Python Script to batch convert image formats
https://app.box.com/s/zk4900ihavgsdnceeqd5uz90lhhxyqwd

Python Script to batch remove alpha channels from images - strip_alpha.py

https://app.box.com/s/1bnzsfsjrzi2ez0i31ahzcmag4q2ajt3

MEL Script to check game engine textures - texture_check.mel
Select one or one file nodes in the Hypergraph and this script will check for power of 2
and non-square dimensions.
https://app.box.com/s/937vlj7zl3yyltqh17fefkbny71zqwvi

MEL Script to create multiple materials and automatically link textures -
create_materials.mel
Open up the script and look at the user parameters block.
Quite a few options here like changing the type and number of materials to create.
Make sure the $filepath variable is the correct path to your textures.
https://app.box.com/s/zrjj3mabfr8sa316xfy7vf09404ybxcp

MEL Script to regenerate texture swatches - update_swatches.mel
Automatically updates all the texture swatches in a Maya scene, instead of manually
clicking on each swatch icon in the attribute editor. Useful if your source control excludes
Maya swatches or you inherit a large scene with no swatch icons.
https://app.box.com/s/ttieyeiy6pe8zeb1xxonyrxaq07498au

atlas_texture_fruit_composite_640.jpg

MEL Script to generate single UV texture atlas - atlas_uv.mel
Big time saver when combining multiple objects using unique images into one fast atlas texture.
Use it in conjunction with it's partner script atlas_texture.py above. (Tested on Maya 2018.2).
https://app.box.com/s/kued6a8efhqml6h6ustqzmg5aemschl7

atlas_uv_640.jpg

Python Script to batch rename file extensions - file_extension_rename.py Written to stop incorrectly named image files crashing Windows File Explorers (tested on Windows 10 using Python 3.7 64 bit).
https://app.box.com/s/dawfuzjz9cb5y9i41fe2g2vixbf07i3f

Python Script to batch resize images - image_resize.py
Written to scale down hundreds of 4k movie textures to get them workings in real time on a PC. Faster and better image quality than using Photoshops batch convert (tested on Windows 10 using Python 3.7 64 bit and requires Pillow library).
https://app.box.com/s/175yckvthn70es1337y8jdumpwuuc16j

MEL Script to merge multiple UV sets on single meshes - uv_map_merge.mel
Written to fix TV show assets with hundreds of UV sets on a single mesh which our
game engine didn't like (tested on Maya 2018.2)
https://app.box.com/s/wnz6gu8roi786upncisjrro1qhsaloxb

Mirror Man Mel Script - mirrorManGui.mel
Nice little program that will speed up your workflow if you are modelling symmetrical objects day in day out.
https://app.box.com/s/goh049xiyniaty3eawqheca3vsqlnao4

mirrorMan_screen_grab.jpg

Python A* Pathfinding Implementation - A_star.py
Very handy script and why write your own if some mug has already done it. (Requires Python 2.xx).
https://app.box.com/shared/lcrmp5kjsn

Python Sprite Sheet Scripts

Assembles a vertical sprite sheet from a series of sprites - spr_sheet_gen.py

https://app.box.com/s/qfsho3kqz97au4pnfj24i76thkd78r0g

Assembles a vertical, horizontal or grid sprite sheet from a series of sprites - spr_grid_gen.py
https://app.box.com/s/xbs402evtqqmy0za9gbpx71zk2irl0zo

index.png
Previous
Previous

Maya Roadkill UV Tool

Next
Next

Shopkins Happy Places