User Tools

Site Tools


DzVideoClip

Class that encapsulates a simple video clip with per frame images.

More...

Inherits :

Constructors

DAZ Script
DzVideoClip ()
DzVideoClip ( Number width, Number height, Number rate )

Methods

Detailed Description

TODO: Add detailed description.

Constructors


DzVideoClip()

Default Constructor.


DzVideoClip( Number width, Number height, Number rate )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Methods


void : appendFrame( Image img )

Adds a frame to the end of the clip

Parameter(s):

  • img - Image to add as a frame.

void : appendFrameFile( String imgFilename )

Adds a frame to the end of the clip

Parameter(s):

  • filename - Image file to add as a frame.

DzAudioClip : getAudio()

Return Value:

  • The audio (if any) that is associated with the video.

DzTime : getAudioStartTime()

Return Value:

  • The time offset from the beginning of the video that the audio clip begins. This can be negative (the beginning of the video starts part way into the audio clip).

Image : getFrame( Number i )

Return Value:

  • The i'th frame in still image form

Number : getFrameRate()

Return Value:

  • The number of frames per second for the clip

Number : getHeight()

Return Value:

  • The height of the video clip.

Number : getNumFrames()

Return Value:

  • The number of frames in the video clip.

Number : getWidth()

Return Value:

  • The width of the video clip.

void : setAudio( DzAudioClip audio, DzTime audioStartTime )

Set the audio that accompanies the video clip

Parameter(s):

  • audio - The audio clip for the video.
  • audioStartTime - The time offset from the beginning of the video that the audio clip begins. This can be negative (the beginning of the video starts part way into the audio clip).

void : setFrameRate( Number rate )

Set the frame rate of the clip

Parameter(s):

  • rate - The number of frames per second for the clip