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!