## Transition

Object Hierarchy | Related C++ Class: Transition

### Inheritance

SIObject

ProjectItem

Transition

### Introduced

v4.0

### Description

This object represents a transition between two clips. A transition is an interpolation used to smooth passing from the end of one clip to the beginning of another. You can access the Transition object from the ClipContainer.Transitions property. The base property SIObject.Type returns one of the strings defined under siTransitionType.

### Methods

AddCustomOp | AddICEAttribute | AddScriptedOp | AddScriptedOpFromFile
AnimatedParameters2 | BelongsTo | EvaluateAt | GetICEAttributeFromName
IsA | IsAnimated2 | IsClassOf | IsEqualTo
IsKindOf | IsLocked | IsSelected | LockOwners
RemoveICEAttribute | SetAsSelected | SetCapabilityFlag | SetLock
TaggedParameters | UnSetLock |  |

### Properties

Application | BranchFlag | Capabilities | Categories
EndClip | EvaluationID | Families | FullName
Help | HierarchicalEvaluationID | ICEAttributes | LockLevel
LockMasters | LockType | Model | Name
NestedObjects | ObjectID | Origin | OriginPath
Owners | PPGLayout | Parameters | Parent
Parent3DObject | Selected | StartClip | Type

### Examples

#### Python Example

    #
    # This example demonstrates how to create a Transition between two clips.
    #
    Application.NewScene("", 0)
    oRoot = Application.ActiveSceneRoot
    oCube = oRoot.AddGeometry( "Cube", "MeshSurface")
    # Create the first animation source
    oSource = Application.StoreAction(oRoot, "cube.kine.local.posx,cube.kine.local.posy,cube.kine.local.posz",
            1, "StoredStaticPose", 1, 1, 5, 0, 0)
    # Create the first clip
    oClip = Application.AddClip(oRoot, oSource)
    Application.LogMessage("First created clip " + oClip.FullName )
    # Create the second animation source
    oCube.Parameters("posx").Value  =  3.0
    oSource2 = Application.StoreAction(oRoot, "cube.kine.local.posx,cube.kine.local.posy,cube.kine.local.posz",
            1, "StoredStaticPose", 1, 7, 9, 0, 0)
    # Create the second clip
    oClip2 = Application.AddClip(oRoot, oSource2)
    Application.LogMessage("Second created clip " + oClip2.FullName)
    oTransition = Application.AddTransition(oClip, oClip2, 0)
    Application.LogMessage("The transition " + oTransition.FullName + " is of type " + oTransition.Type)
    oStartClip = oTransition.StartClip
    Application.LogMessage("The clip at the beginning of the transition is " + oStartClip.FullName)
    oEndClip = oTransition.EndClip
    Application.LogMessage("The clip at the end of the transition is " + oEndClip.FullName)
    # Expected Results:
    #INFO : First created clip Mixer.Mixer_Anim_Track.StoredStaticPose_Clip
    #INFO : Second created clip Mixer.Mixer_Anim_Track1.StoredStaticPose1_Clip
    #INFO : The transition Mixer.Transition is of type TransitionStandardType
    #INFO : The clip at the beginning of the transition is Mixer.Mixer_Anim_Track.StoredStaticPose_Clip
    #INFO : The clip at the end of the transition is Mixer.Mixer_Anim_Track1.StoredStaticPose1_Clip

### See Also

ClipContainer Clip TransitionCollection AddTransition