Page 1 of 1

Text + node word wrap and font scaling

PostPosted: Thu Oct 13, 2016 9:03 am
by PeterRedberry
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

Re: Text + node word wrap and font scaling

PostPosted: Wed Oct 26, 2016 9:53 pm
by michael vorberg
afaik there is no way to do that dynamic

Re: Text + node word wrap and font scaling

PostPosted: Fri Dec 09, 2016 9:35 am
by Gianluca Massera
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.

Re: Text + node word wrap and font scaling

PostPosted: Fri Dec 09, 2016 10:59 pm
by Chad Capeland
Sure, you just get the data window of the output image.

Re: Text + node word wrap and font scaling

PostPosted: Tue Dec 13, 2016 9:04 pm
by michael vorberg