Expressions/Scripts/Presets

Search found 3 matches

by wheelz13
Wed Apr 19, 2017 2:22 pm
Forum: Scripts Discussion
Topic: Randomize position on a text layer animator by word.
Replies: 0
Views: 180

Randomize position on a text layer animator by word.

I have a text layer with many words and a range selector animating the Start from 0 - 100% 'based on' words (not characters). The positions I want the words to start at I would like to be random but limited to specific starting positions: x-axis can start from -1700 (left) o...
by wheelz13
Tue Apr 18, 2017 11:56 pm
Forum: Scripts Discussion
Topic: How can I get the number of word in a text layer?
Replies: 2
Views: 119

How can I get the number of word in a text layer?

Hey there,

Currently, I can count characters with this:

myText = text.sourceText;
myText.length


What I really need is a way to count the number of words within a text layer.

Is this possible?

Thanks in advance! :-)