Style a single word in a text layer?
Hi all. I have a text layer that has a blinking cursor (based on this YT tutorial: https://www.youtube.com/watch?v=uitRUjAd_0I). This is fine as far as it goes (I did fix it so it’ll still work on newlines), but I have a text layer that has an italic variant at one point, and the above script makes everything the same font as the initial font in the layer.
The script splits the text apart and gradually rebuilds it: it’s my hope that there’s some magical variant of setStyle that allows you to specify start and stop indexes for where to apply a different style? Or am I just straight out of luck? Thanks!
Of course, if there’s a better way to create a cursor effect in the first place, I’d love to know that, too!!!Some contents or functionalities here are not available due to your cookie preferences!