Replaces all spaces in a text layer with line breaks.
Contributed by:
text.sourceText.replace(/ /g, "\r");
Helps format text dynamically, ensuring line breaks happen after every space - great for captions and paragraph formatting.
Ideal for looping animations, slow zoom effects, or background scaling.
Ideal for MOGRTs, templates, and automated scenes where designers want full UI control over fade animations.
Auto-resize text containers for lower-thirds, dual-line titles, or caption panels.
Used for creating on-screen timecode displays that match frame rates accurately.
Ideal for UI animations, statistics, financial data, and countdowns where a number needs to animate smoothly without manual keyframing.
Ideal for ensuring two text layers remain perfectly centered within the composition - especially useful for headlines and dynamic text setups where content length may vary.