I can't find any global call to set the frame for all scenes in older API versions.
If you'd like to set the frame for all scenes, just iterate through the scenes in your blend and set the frame. Recommend use the python console to figure out:
>>> D.scenes
<bpy_collection[1], BlendDataScenes>
>>> for s in D.scenes:
s.frame_set(23)
If you'd like to set the frame for a specific scene which is currently not the active one, get a reference of the actual scene using pythons get() and call Scene.frame_set() on that reference:
import bpy
scn = bpy.data.scenes.get("Scene")
if scn:
scn.frame_set(23)
In case you'd like to set the frame for multiple known scenes at once: I'd suggest create a list, set or tuple out of scene names and iterate through the items beforehand:
import bpy
for s in ('Scene', 'Scene.001', 'Scene.002'):
scn = bpy.data.scenes.get(s)
if scn:
scn.frame_set(23)
bpy.data.scenes.frame_set(10)has never been available. One wonders if the answer here is simplybpy.context.scene.frame_set(20)to change frame on scene that has context. – batFINGER Aug 05 '21 at 13:53