Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4125

Overwriting text

$
0
0

I have a script that adds text on top of objects in layouts. It can put a text with object name, material name, material notes or any user text. Text placement is based on the center of the object, translated to layout space.
Only problem is that each text will overwrite existing text. For example, if I already have a text with the object name and then want to add the material, it goes directly on top of the name text.
I could write some complicated script to get the bounding boxes of existing text and shift a new text if it will overlap, but was wondering if there is a more elegant way to do this.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4125

Trending Articles