The RestoreCamera function has a second argument animate=True. Setting this to False should fix your issue.
If you are using s4l_v1.renderer.SaveScreenCapture to save an image of the scene in your script, you might need to give the GUI a chance to refresh during script execution. On Windows, you can do this with
win32gui.PumpWaitingMessages()
I typically do something like this
def refresh_gui()
if sys.platform == "win32":
import win32gui
win32gui.PumpWaitingMessages()
for config in all_configurations:
# change the model, run a simulation, change camera settings, etc.
do_something(config)
refresh_gui()
s4l_v1.renderer.SaveScreenCapture(
width=1024,
height=1024,
multi_sample=True,
transparent_background=True,
output_folder="C\temp\screenshots"
output_prefix=f"subcase_{config}"
)