annotate blender/time_sync/__init__.py @ 2458:0e27ba33118c default tip

better blender<->asco playback cooperation. still no play support in blender; only seek
author drewp@bigasterisk.com
date Tue, 20 May 2025 16:25:06 -0700
parents 405abed9a45c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2432
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
1 """
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
2 sets blender time to track ascoltami time;
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
3 blender-side time changes are sent back to ascoltami
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
4 """
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
5
2454
405abed9a45c fix up asyncio-in-bg-thread sorcery
drewp@bigasterisk.com
parents: 2453
diff changeset
6 import sys
405abed9a45c fix up asyncio-in-bg-thread sorcery
drewp@bigasterisk.com
parents: 2453
diff changeset
7
2432
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
8 sync: object = None
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
9
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
10
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
11 def register():
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
12 global sync
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
13 from .time_from_graph import Sync
2454
405abed9a45c fix up asyncio-in-bg-thread sorcery
drewp@bigasterisk.com
parents: 2453
diff changeset
14 sys.stderr.write('🚋2 imported Sync\n')
2432
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
15 sync = Sync()
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
16
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
17
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
18 def unregister():
b8a408caf115 start blender sync
drewp@bigasterisk.com
parents:
diff changeset
19 raise NotImplementedError