Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# `Hydra.utils.nav`

Module responsible for window and result navigation.

## Module Contents

Hydra.utils.nav.getSplitDir(target) → str

  Creates a split direction based on the window size and global preferences.

  Parameters:

    target – Window to be split.

  Returns:

    Window split direction.

  Return type:

    `str`

Hydra.utils.nav.getOrMakeArea(type: str, uiType: str = '') → bpy.types.Area

  Gets or creates a window of the specified type.

  Parameters:

    - type (`str`) – Window type.

    - uiType (`str`) – Window subtype.

  Returns:

    Created or found area.

  Return type:

    `bpy.types.Area`

Hydra.utils.nav.gotoImage(img: bpy.types.Image)

  Navigates Blender to the specified image.

  Parameters:

    img (`bpy.types.Image`) – Image to navigate to.

Hydra.utils.nav.gotoShader(obj: bpy.types.Object)

  Navigates Blender to the material of the specified object.

  Parameters:

    obj (`bpy.types.Object`) – Object to navigate to.

Hydra.utils.nav.gotoObject(obj: bpy.types.Object)

  Navigates Blender to the specified object.

  Parameters:

    obj (`bpy.types.Object`) – Object to navigate to.

Hydra.utils.nav.gotoModifier()

  Navigates to the Modifiers tab.

Hydra.utils.nav.gotoShape()

  Navigates to the Mesh data tab.