Is it possible to add driver to Scene.current_frame
so that one scene's current frame can drive other scene's?
If not is there a way to link them continuously?
Thanks.
Is it possible to add driver to Scene.current_frame
so that one scene's current frame can drive other scene's?
If not is there a way to link them continuously?
Thanks.
You cannot add a driver to the frame_current property of the scene object, error message from console.
>>> C.scene.driver_add('frame_current')
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
TypeError: bpy_struct.driver_add(): property "frame_current" not animatable
You could do something with frame change handlers.
import bpy
def lockscenes(scene):
if scene.name == "Scene": # master scene
f = scene.frame_current
for scene in bpy.data.scenes:
if scene.name == "Scene":
continue
scene.frame_set(f)
return None
bpy.app.handlers.frame_change_post.append(lockscenes)