Text style expressions are fantastic! But chaining many methods together is verbose.
Idea:
Similar to getStyleAt(), I would like a setStyleAt() method. I want to create a style that contains a bunch of methods, and apply that style to a range.
This method should apply a predefined Text Style object to a specified range and optional time.
Parameters: Text Style object, index, time
text.sourceText.setStyleAt(style, 0, 0)
How will the idea help your workflow?
I find myself chaining many style methods together and needing to individually apply all methods to the same ranges. This creates many lines of code for 1 "look". Example:
text.sourceText.style
.setFillColor(effect("Color Control")("Color"), startIndex, numChars)
.setFont("Impact", startIndex, numChars)
.setTracking(5, startIndex, numChars)
.setAllCaps(true, startIndex, numChars)
Benefits of Feature:
- If setStyleAt() method takes in a style object as a param, we can create multiple text layers with unique styles and pass each style into the method. In this way, you can create a "mixed" text style with varied ranges (ex. collage-style text).
- Use createStyle() to hold style attributes, and then apply all attributes to a range with setStyleAt()
- This allows you to define a style & reuse it, perfect for templates
Enlist support!
Vote on this fix~!