blender/scripts/presets/sequencer/text_style/Subtitle.py
Pablo Vazquez e6a2fde77e VSE: Add Text Style Presets
Add the ability to save and load style presets in Text strips.

Most settings in the "Style" and "Layout" panels are saved.

Three styles are included as example and for convenience:
* Subtitle: Classic film style subtitle.
* Main Title: Large, centered.
* Title Corner: Small, left-bottom aligned.

See PR for details and screenshots.

Pull Request: https://projects.blender.org/blender/blender/pulls/155048
2026-03-24 14:54:52 +01:00

21 lines
545 B
Python

import bpy
strip = bpy.context.active_strip
strip.wrap_width = 0.8
strip.use_bold = False
strip.use_italic = False
strip.font_size = 40.0
strip.color = (1.0, 1.0, 0.2, 1.0)
strip.use_outline = True
strip.outline_color = (0.0, 0.0, 0.0, 1.0)
strip.outline_width = 0.08
strip.use_shadow = True
strip.shadow_color = (0.0, 0.0, 0.0, 1.0)
strip.shadow_angle = 0.523
strip.shadow_offset = 0.05
strip.shadow_blur = 0.0
strip.use_box = False
strip.location = (0.5, 0.15)
strip.alignment_x = 'CENTER'
strip.anchor_x = 'CENTER'
strip.anchor_y = 'CENTER'