[Chimera-users] Can I use wait command over Rest service?
meng at cgl.ucsf.edu
Mon May 30 10:26:11 PDT 2016
If I understand correctly, stringing the commands together with semicolons means to only show the result at the end.
“...display is not redrawn until the last command in a semicolon-separated series has been executed.”
I’d expect it to behave more like you want as two separate commands:
display #0:30.A;wait 20
… although perhaps that is more trouble to script. If this is just for “live” execution (not recording as a movie) the “sleep” command may be an alternative to “wait,” although it may also require using two separate commands.
I hope this helps,
Elaine C. Meng, Ph.D.
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
On May 30, 2016, at 9:58 AM, Mungo Carstairs (Staff) <g.m.carstairs at dundee.ac.uk> wrote:
> I am trying to devise a way to highlight locations on a structure in Chimera while mousing over the sequence in Jalview.
> My latest attempt tries to 'flash' the side-chain display at the residue position i.e.
> - hide then show atoms (if currently displayed e.g. display is in atom mode)
> - or show then hide atoms (if currently not displayed e.g. display is in ribbon mode)
> I'm sending a command like
> display #0:30.A;wait 20;~display #0:30.A
> to the Rest service.
> However while this seems to do what I want when used at the Chimera command line, via the Rest service it ignores the wait command, with the result that the action is too quick to see.
> Any suggestions please for how to get this to work, or a better alternative?
More information about the Chimera-users