@foosion: if you really want to roll your own implementation, I think the easiest is to do it in an Action chains python action. Use db.cache.search() to get the list of ids, select one randomly, then gui2.actions.view.view_format_by_id() to launch the viewer.
Last edited by chaley; 08-19-2024 at 05:55 AM.
Reason: spelling
|