simulation.py
def _onKeyVideoLogging(self): # {{{0
    "Start (or stop) dumping simulation to a file"
    if self.export is None:
      path = self._getVideoPath()
      self.export = p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4, path)
      p.b3Print("Rendering simulation to {}".format(path))
    else:
      p.stopStateLogging(self.export)
      self.export = None
      p.b3Print("Rendering terminated")
Start (or stop) dumping simulation to a file
Start (or stop) dumping simulation to a file
Start ( or stop ) dumping simulation to a file
def _onKeyVideoLogging(self): 
    if self.export is None:
      path = self._getVideoPath()
      self.export = p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4, path)
      p.b3Print("Rendering simulation to {}".format(path))
    else:
      p.stopStateLogging(self.export)
      self.export = None
      p.b3Print("Rendering terminated")
def _onKeyVideoLogging ( self ) : if self . export is None : path = self . _getVideoPath ( ) self . export = p . startStateLogging ( p . STATE_LOGGING_VIDEO_MP4 , path ) p . b3Print ( "Rendering simulation to {}" . format ( path ) ) else : p . stopStateLogging ( self . export ) self . export = None p . b3Print ( "Rendering terminated" )
Start (or stop) dumping simulation to a file
Start ( or stop ) dumping simulation to a file
# {{{0 "Start (or stop) dumping simulation to a file"
self