2
$\begingroup$

I have two pieces of dynamic text, one of which is parented to the other as they go through various transforms in the animation. Is there a way to drive the location of the second text object based on proximity to the first, so that if values change it still is aligned properly?

$\endgroup$
5
  • $\begingroup$ I'm not quite sure what you mean. Are you asking if there's a way to change the alignment of the child object based on how close it is to the parent? If so, an IK constraint might be what you're looking for. $\endgroup$ Mar 2, 2016 at 14:26
  • $\begingroup$ @MikeBelanger I would like to keep the space between two text objects the same no matter the contents. $\endgroup$
    – J Sargent
    Mar 2, 2016 at 14:28
  • $\begingroup$ So if the parent text object changes the amount of characters in it, the child object updates itself to be just as far away from the parent? $\endgroup$ Mar 2, 2016 at 14:32
  • $\begingroup$ @MikeBelanger That is it exactly. $\endgroup$
    – J Sargent
    Mar 2, 2016 at 14:34
  • 1
    $\begingroup$ Hmm that's a good question. Sorry, I don't have a upvote-worthy answer. Assuming your animating the text using this technique blender.stackexchange.com/questions/7904/… perhaps there's some method of making the child object part of the parent object, and making the child's text into a seperate 'Text Box'? The Text box 'offset' will be driven by the length of the initial string? blender.org/manual/modeling/texts/editing.html $\endgroup$ Mar 2, 2016 at 15:11

1 Answer 1

2
$\begingroup$

Adjacency

enter image description here

Consider a driver in the Delta Location X which associates with the X dimension of the adjacent object. Suit Location index to needs.

enter image description here

Image above. Cube has smaller X dimension.

enter image description here

The cone is a parent as depicted in the Outliner Window. The sphere delta location is determined by x dimension of the beveled cube. The alignment must be taken into consideration. Here the cube origin is the geometric center, thus the script has the corresponding math.

The blue object represents text.

$\endgroup$
1
  • $\begingroup$ Awesome, I'll have to try that! $\endgroup$
    – J Sargent
    Mar 2, 2016 at 23:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .