parameters: (self, viewId)
return_statement: return view.GetGlobalIDAsString()
docstring: RPC callback to reset camera.
docstring_summary: RPC callback to reset camera.
docstring_tokens: RPC callback to reset camera .
function: def resetCamera(self, viewId):
          """
          RPC callback to reset camera.
          """
          view = self.getView(viewId)
          simple.Render(view)
          simple.ResetCamera(view)
          try:
              view.CenterOfRotation = view.CameraFocalPoint
          except:
              pass
  
          self.getApplication().InvalidateCache(view.SMProxy)
          self.getApplication().InvokeEvent("UpdateEvent")
  
          return view.GetGlobalIDAsString()
function_tokens: def resetCamera ( self , viewId ) : view = self . getView ( viewId ) simple . Render ( view ) simple . ResetCamera ( view ) try : view . CenterOfRotation = view . CameraFocalPoint except : pass self . getApplication ( ) . InvalidateCache ( view . SMProxy ) self . getApplication ( ) . InvokeEvent ( "UpdateEvent" ) return view . GetGlobalIDAsString ( )