Page 1 of 1

Set scale to bounding box size?

Posted: 23 Jul 2014, 19:55
by shermanpat
Hoping some one can help me out with this. I want to have a background box that dynamically scales to the size of the content and text I am receiving. Just like how FB, Twitter, forums have a box that surrounds each post.

I would love to be able to just get the bounding box size X,Y from the axis node(but seems like that is not available).
From other posts it seems like i could use the Get and Set World nodes. But that has not worked out when trying to use it(user error?).

Right now my work around is to give some floats and use expressions to get it working. But this way is will not be very dynamic in the end. Might any other users have a suggestion on nodes to use to achieve this type of look?

Thank You.
-Sherman

Re: Set scale to bounding box size?

Posted: 24 Jul 2014, 19:03
by squiggle
You can use the outputs of the Text-Nodes to calculate the height of your background box. See the attached example.

hth, sq