Skip to content

A godot 4.x plugin that implements godotengine/godot-proposals#9782 by adding a hotkey Shift+H to hide all nodes except the selection.

License

Notifications You must be signed in to change notification settings

SheepCommander/gd-SoloVisibility

Repository files navigation

Solo Visibility

A godot 4.x plugin that implements godotengine/godot-proposals#9782.

Use Shift + H to hide all nodes in the current scene except the selected ones.

Use Alt + H to hide all nonselected nodes.

Hotkeys can be customized via the Godot inspector tab in res://addons/solo_visibility/hide_nodes_shortcut.tres

Download options

(Get the Godot Game Engine here: https://godotengine.org/download/)

From the Asset Library:

  1. Download "Solo Visbility" from the Asset Store
  2. Enable the plugin in the Project Settings / Plugin tab

Manually:

  1. Download the addons folder and drag it into your godot project
  2. Enable the plugin in the Project Settings / Plugin tab

Details

Customization:

  • The Hide Non-Selected Nodes hotkey is Shift+H by default. It can be changed in res://addons/solo_visibility/hide_nodes_shortcut.tres
  • The Show Non-Selected Nodes hotkey is Alt+H by default. It can be changed in res://addons/solo_visibility/show_nodes_shortcut.tres

Where the hotkey can activate:

  • Only when the 2D or 3D 'main screens' (the tabs in the top middle) are open
  • Only when the 2D Viewport, 3D Viewport, or Scene dock are focused.
    • If you have any of those three focused and the hotkey isn't working, please immediately open an Issue!

Known issues

  1. Disabling the plugin causes Undo Hide Non-selected Nodes to break, even if the plugin is re-enabled before attempting to undo. I suspect this is Godot-level and cannot be fixed on the plugin's end.
    • Please remember to Undo Hide Non-Selected Nodes before disabling the plugin.
  2. The current implementation of Shift+H and Alt+H use hidden metadata on each node to remember whether to show or hide the node. This may leave unwanted metadata on your nodes. A cleanup solution is being worked on, but if it bothers you you can always open .tscn files in a text editor and delete all metadata/SoloVis_Hide## = false lines (where ## is a random int).

About

A godot 4.x plugin that implements godotengine/godot-proposals#9782 by adding a hotkey Shift+H to hide all nodes except the selection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published