def forward(_self=cmd): """ DESCRIPTION "forward" moves the movie one frame forward. USAGE forward PYMOL API cmd.forward() SEE ALSO mset, backward, rewind """ r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, 5, 1) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def backward(_self=cmd): ''' DESCRIPTION "backward" moves the movie back one frame. USAGE backward PYMOL API cmd.backward() SEE ALSO mset, forward, rewind ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb,5,-1) finally: _self.unlock(r,_self) if _self._raising(r,_self): raise pymol.CmdException return r
def backward(_self=cmd): ''' DESCRIPTION "backward" moves the movie back one frame. USAGE backward PYMOL API cmd.backward() SEE ALSO mset, forward, rewind ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, 5, -1) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def set_frame(frame=1, mode=0, _self=cmd): ''' internal ''' r = DEFAULT_ERROR try: _self.lock(_self) r=_cmd.set_frame(_self._COb, int(mode), int(frame)-1) finally: _self.unlock(r,_self) if _self._raising(r,_self): raise pymol.CmdException return r
def set_frame(frame=1, mode=0, _self=cmd): ''' internal ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, int(mode), int(frame) - 1) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def middle(_self=cmd): ''' DESCRIPTION "middle" goes to the middle of the movie. USAGE middle PYMOL API cmd.middle() ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb,3,0) finally: _self.unlock(r,_self) if _self._raising(r,_self): raise pymol.CmdException return r
def ending(_self=cmd): ''' DESCRIPTION "ending" goes to the end of the movie. USAGE ending PYMOL API cmd.ending() ''' r = DEFAULT_ERROR try: _self.lock(_self) r=_cmd.set_frame(_self._COb,6,0) finally: _self.unlock(r,_self) if _self._raising(r,_self): raise pymol.CmdException return r
def rewind(_self=cmd): ''' DESCRIPTION "rewind" goes to the beginning of the movie. USAGE rewind PYMOL API cmd.rewind() ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb,4,0) finally: _self.unlock(r,_self) if _self._raising(r,_self): raise pymol.CmdException return r
def middle(_self=cmd): ''' DESCRIPTION "middle" goes to the middle of the movie. USAGE middle PYMOL API cmd.middle() ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, 3, 0) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def ending(_self=cmd): ''' DESCRIPTION "ending" goes to the end of the movie. USAGE ending PYMOL API cmd.ending() ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, 6, 0) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def rewind(_self=cmd): ''' DESCRIPTION "rewind" goes to the beginning of the movie. USAGE rewind PYMOL API cmd.rewind() ''' r = DEFAULT_ERROR try: _self.lock(_self) r = _cmd.set_frame(_self._COb, 4, 0) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r