parameters: ()
return_statement: return view
docstring: Returns the active view if there is one. Else creates and returns a new view.
docstring_summary: Returns the active view if there is one. Else creates and returns a new view.
docstring_tokens: Returns the active view if there is one . Else creates and returns a new view .
function: def GetRenderView():
      "Returns the active view if there is one. Else creates and returns a new view."
      view = active_objects.view
      if not view:
          # it's possible that there's no active view, but a render view exists.
          # If so, locate that and return it (before trying to create a new one).
          view = servermanager.GetRenderView()
      if not view:
          view = CreateRenderView()
      return view
function_tokens: def GetRenderView ( ) : view = active_objects . view if not view : # it's possible that there's no active view, but a render view exists. # If so, locate that and return it (before trying to create a new one). view = servermanager . GetRenderView ( ) if not view : view = CreateRenderView ( ) return view