Search Maya Zest

Friday, September 1, 2017

MEL Code to change filter type of all your images/textures (MAYA)

Sometimes you might want to turn of the texture filtering for ALL textures or ALL SELECTED textures in your maya project. This is because the default filtering method (quadratic) can lead to very soft or smudgy textures.

Paste one of these scripts into your script editor with MEL selected. Then highlight the code snippet and press the play button to execute.

// Sets filter type to "Off" on ALL file textures

string $fileList[] = `ls -type "file"`;
for ($file in $fileList){
        setAttr ($file + ".filterType") 0;

// Sets filter type to "Off" on selected file textures

string $fileList[] = `ls -sl -type "file"`;

for ($file in $fileList){
        setAttr ($file + ".filterType") 0;

Start Multiple instances of After Effects CC

So you might have noticed if you try to start another instance of after effects nothing happens. There is a little trick to start more copies.

1. Start AE, then start your windows task manager. Go to the processes tab. You should see AfterFX.exe Right click on that process and at the top of the popup list say "open file location"

2. This will open an explorer window with afterFX.exe selected. Right click on it and select "create shortcut"

3. Right click on the shortcut that is created and go to "properties" at the bottom.

4. In the target field at the very end put a space and then -m

Make sure you put a space or it will give an error.

That's it it should let you start multiple copies of AE now!

Wednesday, August 30, 2017

Media player to replace quicktime on windows (NOT VLC)

So after searching around for a bit since quicktime doesn't seem to hardly work in windows anymore I needed a player that can both frame by frame, be light weight, and play MOV's etc. Everyone talks about VLC but it doesn't frame by frame very well at all and honestly I think it looks awful. Windows media player is clunky as heck and often won't even play mp4, or MOV files.

Enter smplayer. You can frame by frame with the < > keys , .

Under preferences you can go the interface tab and change it to mini GUI, so that the icons aren't so big and clunky. you can turn off the top tool bar.

You can tell it to allow multiple instances under Options>Preferences>interface> instances tab.

So overall it seems light and tight like quicktime was, I have my frame by frame functionality and it doesn't look like it came out of some geeks pocket protector (well mostly :) If you tune up the interface a little.



Tuesday, August 29, 2017

Make an object or shadow follow/parent only on one axis after effects

Let's say you want the y axis to stay fixed but you wanted the object to translate along x with another layer or object. For instance the shadow for a bouncing character.

Start with code something like this in the position expression for your object that needs to track your "parent object" Set y to the desired fixed vertical height.

y = 900;
x=  ;

Simply Click to the left of the semi colon after x= then pick whip to the x position of the object you want it to follow.

The code should update to something like this.

y = 900;
x=thisComp.layer("name of your layer").transform.position[0];

Now it will follow along with your object only on one axis!