Timeline Class

Summary: The time line options model.

Module: aspose.psd.fileformats.psd.layers.animation

Full Name: aspose.psd.fileformats.psd.layers.animation.Timeline

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
Timeline()Initializes a new instance of the Timeline class

Properties

NameTypeAccessDescription
active_frame_indexintrGets the active frame index.
af_stintr/wGets or sets the AFSt value.
framesFrame[]r/wGets the list of frames.
fs_idintr/wGets or sets the FsID value.
loopes_countushortr/wGets or sets the count of loops.

Methods

NameDescription
save(file_path, options)Saves the PsdImage’s and Timeline data to the specified file location in the specified format according to save options.
save(output_stream, options)Saves the PsdImage’s and Timeline data to the specified stream in the specified format according to save options.
switch_active_frame(target_active_frame_index)Switches the active frame to targeted.

Constructor: Timeline()

 Timeline() 

Initializes a new instance of the Timeline class

Method: save(file_path, options)

 save(file_path, options) 

Saves the PsdImage’s and Timeline data to the specified file location in the specified format according to save options.

Parameters:

ParameterTypeDescription
file_pathstringThe file path.
optionsImageOptionsBaseThe options.

Method: save(output_stream, options)

 save(output_stream, options) 

Saves the PsdImage’s and Timeline data to the specified stream in the specified format according to save options.

Parameters:

ParameterTypeDescription
output_stream_io.BufferedRandomThe output stream.
optionsImageOptionsBaseThe options.

Method: switch_active_frame(target_active_frame_index)

 switch_active_frame(target_active_frame_index) 

Switches the active frame to targeted.

Parameters:

ParameterTypeDescription
target_active_frame_indexintThe target frame index.