I am new to blender and python scripting in blender, so please forgive me if I am being vague because I have no idea where to start.
Currently I am working on a project whose output I wanted to show using animation in blender. The script would be running continuously and what ever result it generates the o/p will change accordingly. For example consider this python script,
def doCalculations(*args): ... while(True): x = doCalculations(...) print(x)
Say this function generates numbers between 1 to 5. Now say I have two cubes in blender. Then if the generated number is 3 then I will project 3 spheres from cube1 to cube2. The function doCalculations would run indefinitely in background and the animation generated will change accordingly.
Is there a way to achieve this? Thanks in advance.