Jump to: Board index » General » Fusion

Text appearance per word

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

Eugene Afanasiev

  • Posts: 607
  • Joined: Sun Aug 30, 2015 2:57 pm
  • Location: Russia

Text appearance per word

PostMon Jan 04, 2016 3:40 pm

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.
__
--[[BMD's cameras and Resolve all-post workflow evangelist
My old stuff: http://www.youtube.com/rebelorelse
Debug: Asus ROG Duo GX550 i9 10980 48Gb RAM RTX2080MaxQ DaVinci Resolve Studio / Fusion Studio Latest Version]]--
Offline

Sander de Regt

  • Posts: 4130
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Text appearance per word

PostMon Jan 04, 2016 8:43 pm

Does it need to be automated? If not, you can animate the 'write on end' and do it manually.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Text appearance per word

PostTue Jan 05, 2016 12:17 am

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)
Offline
User avatar

Eugene Afanasiev

  • Posts: 607
  • Joined: Sun Aug 30, 2015 2:57 pm
  • Location: Russia

Re: Text appearance per word

PostTue Jan 05, 2016 1:14 pm

WOO

Thank you so much, Michael!!!!
__
--[[BMD's cameras and Resolve all-post workflow evangelist
My old stuff: http://www.youtube.com/rebelorelse
Debug: Asus ROG Duo GX550 i9 10980 48Gb RAM RTX2080MaxQ DaVinci Resolve Studio / Fusion Studio Latest Version]]--
Offline
User avatar

Eugene Afanasiev

  • Posts: 607
  • Joined: Sun Aug 30, 2015 2:57 pm
  • Location: Russia

Re: Text appearance per word

PostTue Jan 05, 2016 2:28 pm

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?
__
--[[BMD's cameras and Resolve all-post workflow evangelist
My old stuff: http://www.youtube.com/rebelorelse
Debug: Asus ROG Duo GX550 i9 10980 48Gb RAM RTX2080MaxQ DaVinci Resolve Studio / Fusion Studio Latest Version]]--
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Text appearance per word

PostTue Jan 05, 2016 9:08 pm

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
Offline
User avatar

Rony Soussan

  • Posts: 727
  • Joined: Tue Nov 11, 2014 5:33 pm

Re: Text appearance per word

PostFri Jan 08, 2016 6:09 pm

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.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 22 guests