ui.focusviewΒΆ

nil ui.focusview ( string viewtype )

Focus the first view of the given type, or create a new one in the active tab if none found

This function focuses the first view that matches the given type anywhere in the window layout. In the event such a window can't be found, a new window of that type is created in the current active tab.

Available view types are:

  • Library
  • Linking
  • NodeList
  • Passes
  • RenderView
  • Browser
  • Viewport
Arguments:

  • viewtype The view type