Hi Oliver,
I am loathe to add a general command that no one will ever type in the command line or put in a command script, and that completely depends on the state of a running graphical tool (e.g. the check states of the model panel Skip buttons). Nonetheless, there is nothing stopping you from defining a special-purpose command for your needs. There are many examples in the Chimera Recipes pages (
e.g. Connect nearby atoms | ChimeraX Recipes). In your case, since the commands you're defining takes no arguments, the corresponding Python functions would take only a "session" argument, and you could omit the 'required' and 'keyword' arguments in their CmdDesc definitions.
The actual Python functions would be pretty simple:
def next_model(session):
from chimera.model_panel.tool import model_panel
mp = model_panel(session, "Model Panel")
mp._next_model()
def previous_model(session):
from chimera.model_panel.tool import model_panel
mp = model_panel(session, "Model Panel")
mp._previous_model()
--Eric
Eric Pettersen
UCSF Computer Graphics Lab