mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
adding docstring for maintained selection
This commit is contained in:
parent
c8248dfc9c
commit
b66a679ee2
1 changed files with 7 additions and 0 deletions
|
|
@ -2800,6 +2800,13 @@ def find_free_space_to_paste_nodes(
|
|||
def maintained_selection(exclude_nodes=None):
|
||||
"""Maintain selection during context
|
||||
|
||||
Maintain selection during context and unselect
|
||||
all nodes after context is done.
|
||||
|
||||
Arguments:
|
||||
exclude_nodes (list[nuke.Node]): list of nodes to be unselected
|
||||
before context is done
|
||||
|
||||
Example:
|
||||
>>> with maintained_selection():
|
||||
... node["selected"].setValue(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue