Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVVideoCompositionCoreAnimationToolMBS class.

AVVideoCompositionCoreAnimationToolMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true on Mac OS X 10.7 and newer.

AVVideoCompositionCoreAnimationToolMBS.videoCompositionCoreAnimationToolWithAdditionalLayer(layer as CALayerMBS, trackID as Integer) as AVVideoCompositionCoreAnimationToolMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Add a Core Animation layer to the video composition.

layer: The Core Animation layer to add.
trackID: A track ID to identify the track.

trackID should not match any real trackID in the source.

Return a new animation tool for the layer.

You use this method to include a Core Animation layer as an individual track input in video composition.
Video composition instructions should reference trackID where the rendered animation should be included.

AVVideoCompositionCoreAnimationToolMBS.videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer(videoLayer as CALayerMBS, animationLayer as CALayerMBS) as AVVideoCompositionCoreAnimationToolMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Composes the composited video frames with a Core Animation layer.

videoLayer: A video layer.
animationLayer: An animation layer.

Returns a new animation tool for the composition.
Place composited video frames in videoLayer and render animationLayer to produce the final frame.

Some examples using this method:

AVVideoCompositionCoreAnimationToolMBS.videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers(videoLayers() as CALayerMBS, animationLayer as CALayerMBS) as AVVideoCompositionCoreAnimationToolMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Composes the composited video frames with the Core Animation layer.

videoLayers: An array containing the video layers
animationLayer: The animation layer.

Returns a new AVVideoCompositionCoreAnimationTool instance with the composited video frames and the rendered animation layer.

Duplicates the composited video frames in each videoLayer and renders animationLayer to produce the final frame. The videoLayers should be in animationLayer's sublayer tree.

The animationLayer should not come from, or be added to, another layer tree.
Available in OS X v10.9 and later.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...