Close opened property panels for unselected nodes and open property panel for selected ones ( or keeps it opened )
KeepSome
Updated: 6 June 2022
Author: 3mp7y
Compatible Nuke versions: 12.2 or later
Compatibility: Linux, Mac, Windows
These few lines of python will allow you to close all opened property panels for unselected nodes, while opening (or keeping opened) the property panels of selected nodes.
Only tested on windows/nuke 13 but due to its simplicity it should work with pretty much any set-up.
To install,
paste the KeepSome.py file in your python script folder and paste this in your menu.py:
#KeepSome, closes property panels
import KeepSome
nuke.menu( 'Nuke' ).addCommand( 'Python/Close all but selected', 'KeepSome.KeepSome()', 'alt+r' )