On switching camera in viewport.. Load a specific scene state


Is there a script to do this - On switching / loading camera in viewport… Load scene assigned scene state.

In brief -

Assume If I have multiple cameras and scene states for those multiple cameras - The scene states should automatically load as I load my camera in the viewport… Ofcourse rendering should be set to selected camera and its respective scene state…

I have no idea about coding / making scripts… Just wodering is this too complicated ??

Would be a really handy tool

Thanks in Advance