command.focusviewΒΆ

nil command.focusview ( string name , string viewtype , string icon , string shortcut )

Create a command to focus a specific view (or create the view in the current active tab)

This function creates a command that looks for a specific in the current window layout, and sets focus on that window. In the event suck 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:

  • name The command name
  • viewtype The view type
  • icon The command icon file name
  • shortcut The command shortcut