0

I'm a physicist teacher and I'm trying to create a code that modifies a text during the timeline evolution. The idea is make a display that show some information such the position of an object while it is moving. For this, I was thinking in make a code that

  1. get the information about an object (its position, angle between its edges, this things)
  2. create a text showing this information
  3. create a key frame to 'save' the information and them a loop for repeat this process along the movement of the object.

If someone can help me, I really appreciate it.

Chris
  • 59,454
  • 6
  • 30
  • 84
mack_hyuuga
  • 165
  • 5
  • Hello ! AFAIK it's unfortunately not possible to keyframe the body of a text. There are alternatives though, you'll have to use custom callbacks or dynamically hide / show different text objects at runtime – Gorgious Feb 09 '22 at 07:58
  • See https://blender.stackexchange.com/questions/7904/how-can-i-make-dynamic-text-in-an-animation or https://blender.stackexchange.com/questions/231698/change-text-based-on-frame and https://blender.stackexchange.com/questions/165454/updating-text-object-in-blender-2-81-using-python – p2or Feb 09 '22 at 08:08

1 Answers1

3

if you are fine with using animation nodes (https://animation-nodes.com/#download) which is an amazing add-on, you can use this node setup:

enter image description here

animate your objects position...

and you will get:

enter image description here


Here a solution with GN:

enter image description here

enter image description here

Chris
  • 59,454
  • 6
  • 30
  • 84