Capabilities of Python API for interactive animations

Greetings,

Currently I am working in a research project, we want to model a hand using Blender then via Python API animate that hand interactively. Thereby when I run a script with the method “move_finger()” a specific finger moves.

Initially we need to know if it is possible using Blender and its Python API.

Thanks in advance.

You should search this forum for examples on app handlers, specifically
bpy.app.handlers.frame_change_pre and
bpy.app.handlers.scene_update_pre

They allow you to register callback functions called right before a frame change (manual change / scrubbing timeline / animation playback, scene update every nth of a second).