mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Remove redundant infected code
This commit is contained in:
parent
22e664c96e
commit
1fc8528795
1 changed files with 0 additions and 25 deletions
|
|
@ -3436,28 +3436,3 @@ def iter_visible_nodes_in_range(nodes, start, end):
|
|||
# If no more nodes to process break the frame iterations..
|
||||
if not node_dependencies:
|
||||
break
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def selection(*nodes):
|
||||
"""Execute something with a specific Maya selection.
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
cmds.select('side')
|
||||
print(cmds.ls(sl=True))
|
||||
# ['side']
|
||||
|
||||
with selection('top', 'lambert1'):
|
||||
print(cmds.ls)
|
||||
# ['top', 'lambert1']
|
||||
|
||||
print(cmds.ls(sl=True))
|
||||
# ['side']
|
||||
|
||||
"""
|
||||
current = cmds.ls(sl=True)
|
||||
cmds.select(*nodes, noExpand=True)
|
||||
yield
|
||||
cmds.select(current, noExpand=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue