Search Maya Zest

Friday, December 8, 2017

Create handheld camera shake After Effects with a simple wiggle expression.

You can use a simple wiggle expression on position to emulate some nice camera shake in after effects very easily.

The first two properties supplied to wiggle (frequency and amplitude) are required for the expression to work, the rest of them are optional. If you supply a value for the 3rd property in the wiggle you can increase the number of octaves from the default:

wiggle(1, 10, 3);

You can pull up the graph editor to see the wave form that is created!

The above, for example, will wiggle with a frequency of 1 Hz, an amplitude of 10 but with 3 octaves. This is similar to the "Complexity" of the Fractal Noise effect. It will preserve the overall effect of the wiggle but create additional "sub-wiggles" that add detail.

Here's an image of a wiggle() with 1 octave:

And here's a wiggle() with 3 octaves:

Note that both curves follow the same basic path, but the one with 3 octaves has more "sub-wiggles." If you want to reduce or increase the effect that these additional octaves have you can add a 4th property to wiggle():

wiggle(1, 10, 3, 0.2);

The default value is 0.5. A value of 0.2 would reduce the effect that the additional octaves have on the total wiggle.

For more control functionality you can create a slider control and then pick whip from one of the  numbers in your wiggle set to the slider control, to make keyable changes in the motion.

Special thanks to Darby Edelen, I gleaned this from a forum post he made.

Thursday, November 9, 2017

After effects fade in and out expressions

Just alt click on the little clock for the opacity of the layer you want to fade on the in and out points of your layer and paste these expressions.

FADE on IN and OUT
fadeInTime = .5; // fade in time (seconds)
fadeOutTime = .5;

Math.min(linear(time,inPoint,inPoint + fadeInTime,0,100),linear(time,outPoint - fadeOutTime,outPoint,100,0))

if(time<(this_layer.out_point -0.5)){
} else {
    ( (this_layer.out_point-time)/0.5) * transform.opacity;

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!