puppetTempo()

Usage

-- Lingo syntax
_movie.puppetTempo(intTempo)

// JavaScript syntax
_movie.puppetTempo(intTempo);

Description

Movie method; causes the tempo channel to act as a puppet and sets the tempo to a specified number of frames.

When the tempo channel is a puppet, script can override the tempo setting in the Score and change the tempo assigned to the movie.

It's unnecessary to turn off the puppet tempo condition to make subsequent tempo changes in the Score take effect.

Note: Although it is theoretically possible to achieve frame rates up to 30,000 frames per second (fps) with the puppetTempo() method, you could do this only with little animation and a very powerful machine.

Parameters

intTempo Required. An integer that specifies the tempo.

Example

This statement sets the movie's tempo to 30 fps:

-- Lingo syntax
_movie.puppetTempo(30)

// JavaScript syntax
_movie.puppetTempo(30);

This statement increases the movie's old tempo by 10 fps:

-- Lingo syntax
_movie.puppetTempo(oldTempo + 10)

// JavaScript syntax
_movie.puppetTempo(oldTempo + 10);

See also

Movie


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_update_en/07_me327.htm