Captions
Caption styling configuration.
-
class camtasia.timeline.captions.CaptionAttributes(data)[source]
Bases: object
Timeline-level caption styling configuration.
Controls the appearance of captions/subtitles when displayed.
-
property enabled: bool
Get whether captions are enabled.
-
property font_name: str
Get the caption font name.
-
property font_size: int
Get the caption font size.
-
property background_color: list[int]
Get the caption background color as an RGBA list.
-
property foreground_color: list[int]
Get the caption foreground color as an RGBA list.
-
property lang: str
Get the caption language code.
-
property alignment: int
Get the caption text alignment (0=left, 1=center, 2=right).
-
property opacity: float
Get the caption background opacity (0.0-1.0).
-
property background_enabled: bool
Get whether the caption background is enabled.