Jump to: Board index » General » Fusion

Text + node word wrap and font scaling

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

PeterRedberry

  • Posts: 1
  • Joined: Thu Oct 13, 2016 8:39 am

Text + node word wrap and font scaling

PostThu Oct 13, 2016 9:03 am

I am a total newbie to Fusion - currently using Natron in my workflow but wanted to see what Fusion had to offer!

I am loving the flexibility within the text + node but am wondering if there is a way to have word wrap and dynamic font size for the text node?

What I want to do is dynamically inject text into my video...but I don't know the length of the text before hand!
My current workaround in Natron (as their text node also doesn't have this functionality) is to use Imagemagick.
The advantage of Imagemagick is that I can set the size of the text frame and the text fills to fit the frame size, either by increasing the font size if there isn't a lot of text, or decreasing it if there is a lot!

Ideally I would like to keep everything within Fusion to give me more control over effects I can apply to text

Any help or guidance would be gratefully received

Thanks in advance
Pete
Offline
User avatar

michael vorberg

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

Re: Text + node word wrap and font scaling

PostWed Oct 26, 2016 9:53 pm

afaik there is no way to do that dynamic
Offline

Gianluca Massera

  • Posts: 6
  • Joined: Fri Dec 09, 2016 9:28 am

Re: Text + node word wrap and font scaling

PostFri Dec 09, 2016 9:35 am

Is it possible to achieve that functionality using Python scripts with Fusion ?

I have the following workflow that may allow us to have that functionality but not sure if Fusion is able to do that:

assumption: a text node and a scale transform node that scale the text node
the python script would do:
- inject a text into the text node
- read out the bounding box of the text node with the new text set (is this possible in Fusion)
- calculate the scale factor to set on the scale node to cover a predefined space

But I don't know if from python is possible to read out how much space occupy the text. I'm not talking of the text node size but of the actual space occupied by the text itself.
Offline
User avatar

Chad Capeland

  • Posts: 3025
  • Joined: Mon Nov 10, 2014 9:40 pm

Re: Text + node word wrap and font scaling

PostFri Dec 09, 2016 10:59 pm

Sure, you just get the data window of the output image.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline
User avatar

michael vorberg

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

Re: Text + node word wrap and font scaling

PostTue Dec 13, 2016 9:04 pm


Return to Fusion

Who is online

Users browsing this forum: No registered users and 40 guests