Back to Main Gallery

Gallery - Code, Scripts, Plug-ins, and Shaders

Table of Contents
- Photoshop Automation
- Shaders (CGFX)
- Maya Scripts

I write a lot of scripts for Maya and other applications. Most aren't gallery-worthy, so I stick them in the download section to try if you like. Once in a while something saves enough time that I think it's really worth showing off, and I'll showcase it here. If I can, I'll post it to download, too.

 

Photoshop Automation
PSDAutomationLogo

- Photoshop Actions are nice but not very powerful.
- Photoshop Javascript is alright inside Photoshop, but still lacking

- Controlling Photoshop from another application or hooking Photoshop up to a database is easy to accomplish using C# or VB.Net to control Photoshop through it's OLE interface. Everything here is OLE controlled through a .NET language.

BMDemoIcon
Right-Click,
Save-As

NCAA Uniform Generator
I wrote this toolset at EA to help generate our football uniforms. It consists of a Mel UI inside Maya where an artist sets up and views the art, and a C# Photoshop through COM calls when the artist clicks certain buttons in the UI.

Warning: 16 MB Download, Quicktime Format
Please R-Click and Save-As to prevent playback errors.

 

Shaders - Maya & CGFX

Blinn Shader
Right-Click,
Save-As

Uber Character Shader
This is my big character shader. It's got just about everything an artist needs to make something look real nice in Maya. There are no special effects on it, and no uv tiling of any layers - it's not meant to be an in-game shader, but more of a test shader for models and characters.
It features:
- Regular Color, Normal, Specular, Glossy, and Ambient Occlusion Maps
- Cubic Reflection and Ambient Light
- 1 Directional light for highlights, Blinn model for specularity
- It has an alpha technique, although Maya doesn't sort that well

Just a quick warning on this one - all the comments have been stripped out by
a preprocessor. I use a lot of #include statements, and they don't play well
with Maya. I use lcc to 'precompile' my shaders into one single flattened shader so Maya doesn't freak out.

There are a lot of file inputs - if you plan on using this, you might grab my modified version of the cgfxShader.mll plugin from the download section - it make dealing with many texture inputs much easier!

 

Scripts - Maya

smokeTest
Right-Click,
Save-As

Scene Smoke Test - Screenshot

This is a tool that appears modest, but can save you more time than just about any other one thing here.

It is a standard UI and framework for setting up mel filters for a scene. A filter is a script that returns 0 if nothing was found, or 1 if it was. The SmokeTest UI gives you the stats of all filters.

Each filter may also contain procedures to fix, suggest action, get more information on, or identify/select the problems in the scene.

The Zip file here has 4 sample filters and a template for new ones.