Page 1 of 1

Text appearance per word

PostPosted: Mon Jan 04, 2016 3:40 pm
by Eugene Afanasiev
Hi! Happy holidays to all!

I have a question, I'm thinking how would you make a text to show per word per second?

I did this sometime ago in Ae with expressions, like you take each string number and show it per second.

Now I'd love to recreate it in Fusion.

So the final output is that words or frases appear in the center one by one in the order from the given text.

Re: Text appearance per word

PostPosted: Mon Jan 04, 2016 8:43 pm
by Sander de Regt
Does it need to be automated? If not, you can animate the 'write on end' and do it manually.

Re: Text appearance per word

PostPosted: Tue Jan 05, 2016 12:17 am
by michael vorberg
if i understood you correct:

you could create a text file with each word or phrase in one line
then use the provided code in the "frame render script" tab of the Text+ tool

Code: Select all
TableOfLines = {}
i = 0
FramesPerLine = 25 --how many frames should the line be visible

for line in io.lines("e:\\lines.txt") do --change path to file
    i = i + 1
    TableOfLines[i] = line
end
StyledText = TableOfLines[math.min(table.getn(TableOfLines),math.floor(time/FramesPerLine)+1)] --will hold last line for ever


this will display a line from the file for 25 frames (you can change that with the FramePerLine variable)
this should work pretty fast if your text file isnt too big (because it reads the whole file each frame)

Re: Text appearance per word

PostPosted: Tue Jan 05, 2016 1:14 pm
by Eugene Afanasiev
WOO

Thank you so much, Michael!!!!

Re: Text appearance per word

PostPosted: Tue Jan 05, 2016 2:28 pm
by Eugene Afanasiev
And I still can not figure out how the code should look if I want it to figure out itself that there is a word in the line and it shows that word each separately or each two words separately, that is if I don't want to edit the txt file with paragraphs at each line and all the text is copy pasted in one line?

Re: Text appearance per word

PostPosted: Tue Jan 05, 2016 9:08 pm
by michael vorberg
i can take a look at this later this week, but basicly just google for LUA reading files and then seperate strings by character.

but i'm trying to find a simpler way to use in a simple expression

Re: Text appearance per word

PostPosted: Fri Jan 08, 2016 6:09 pm
by Rony Soussan
we need to incorporate that into the follower. Currently does a ton, except it won't do word or letter fly in and follow.
I've been inking for that myself.