Text source: size of rendered object ?

Hello everyone,

I am using a Text source to add labels on some pictures.
I have now a case where the content of the label is longer than I expected. The consequence of that is that some of the content fall outside of the render view.
I there a possiblity to retrieve the size of the label (width and height), either in pixels or relative to the render view size (from 0 to 1) ?
If I can retrieve that info, I could then offset the source in the script and have the full text always appear on the picture.

Thanks in advance.

I’m afraid not directly no.

What would the indirect way be ?

Creating your own plugin with a dedicated representation that will do the described computation.

Ok. I have no idea how to do this, so I’ll try to think of a simpler solution like using a content size dependent offset or something of that sort. That should already get me far enough for the time being.