2

The short version

I want to create a very simple animation that will change the text of two fields based upon the time elapsed in the animation. I think that the python API is the best place to start, but not entirely sure of that.

I think my question is a duplicate of How can I make dynamic text in an animation?. For my purposes the simple python scripting will work best, but that Animation Node add on looks amazing.

Longer

I want to create a training aid for some musical exercises (Stick Control). Each exercise is played 20 times and generally I'll play 24 total exercises. Depending on the tempo, the total animation will run from 20-50 minutes.

I'll create a metronome track in my audio application and put the two together for the final product.

I intend to do several versions at different tempos, so python was appealing b/c I can put the BPM in the script and then derive what's needed from there.

Hopefully, that's pretty clear. Really looking for the best starting point. It would be really nice if I could get the changing text during the timeline scrub so I could verify that I was doing things correctly without having to dump a complete render each time.

It occurs to me that this is somewhat similar to a walk cycle (on the repetition count), some way to easily change the time scaling for different BPM might make that approach a winner as well.

Andy Davis
  • 121
  • 4
  • You can keyframe objects/texts visibility., if not too much values to display. – lemon Mar 13 '20 at 17:07
  • https://blender.stackexchange.com/questions/110735/animation-nodes-dynamic-text/110736#110736 – atomicbezierslinger Mar 13 '20 at 20:15
  • https://blender.stackexchange.com/questions/50653/how-to-switch-different-sequences-of-characters-with-animation-nodes/50675#50675 – atomicbezierslinger Mar 13 '20 at 20:38
  • 1
    This also can be done directly in Python without BAN Blender Animation Nodes. There are frame change handlers .. a term which can be searched. The python needs to set typically a single attribute of the text object ... such as font_ob.data.body = "My Special Text". – atomicbezierslinger Mar 13 '20 at 20:42
  • https://blender.stackexchange.com/questions/44794/add-subtitles-to-blender-with-scripting/44798#44798 – atomicbezierslinger Mar 13 '20 at 20:45
  • @atomicbezierslinger - Thank you so much for all of the links. I was attempting to use the frame change handlers, but the handler itself was having issues so it looked like nothing was working – Andy Davis Mar 14 '20 at 05:51
  • In fact you may have to remove old handlers or open and close Blender for a fresh start. If you had a two handlers that wrote to the console you might see them both working ..even if you did not want them both there. You may to open and close blender or ask a related question. Why are my old versions of handlers running? – atomicbezierslinger Mar 15 '20 at 23:53
  • I hope you searched for frame handlers here at BSE. – atomicbezierslinger Mar 15 '20 at 23:54

1 Answers1

-1

I don't know exactly how to do it, but if you are looking into scripting methods of doing this, check out animation nodes. This sort of thing is pretty much what it was made for. You can use nodes as well as custom python script to get what you're looking for.