Customizing the transition node – Apple Shake 4 User Manual

Page 272

Advertising
background image

272

Chapter 8

Using the Time View

mixer
Other default choices are:

cut

dissolve

horizontalWipe

verticalWipe

You can also add your own custom effects. For more information, refer to “Customizing
the Transition Node” below.

clipMode
This option appears when mixer is set to Dissolve, allowing you to choose which image
sets the DOD.

channels
This parameter appears when mixer is set to Dissolve, allowing you to choose which
channels are dissolved.

blur
This parameter appears for horizontal and verticalWipe, and is used to soften the
wiping edge.

reverse
This parameter appears for horizontal and verticalWipe, and is used to flip the
direction, for example, from left to right to right to left.

mixPercent
This parameter, with accompanying graph, appears whenever the mixer parameter is
set to anything other than “cut.” mixPercent determines the timing for the mixing. For
example, for dissolve, if mixPercent is at 20, the second image is 20 percent mixed in
and the first image is 80 percent. You can tune a curve interactively in the interface to
adjust timing.

Customizing the Transition Node

If you like, you can create custom mixers for use by the Transition node.

To create your own custom mixers in a startup .h file, you must do two things:

m

Create a macro with two image inputs, i1 and i2, and a float parameter named
mixPercent that typically has the default value of
“HermiteV(x,1,[0,50,50]@0,[100,50,50]@100)”. This gives you the animation curve that
can then be tuned in the interface. You can also add other parameters.

m

Declare the function as a mixer for Transition with the nfxDefMixer command in a
startup .h file. The first parameter is the name of the mixer as it appears in the list. The
second entry is the call to the macro:

nfxDefMixer(“horizontalWipe”,”HWipe()”);

Advertising