Stop a Composition from a Script

by Community Manager on 07-06-2011 02:30 PM - last edited on 07-11-2011 02:17 PM

Stopping a composition using a script is a simple, one-line operation calling the stop() method of the composition object:

$context.composition.stop();

Stopping a composition can be used to conditionally terminate a composition on the basis of some error.