mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Exact type for siblings
This commit is contained in:
parent
cd498441a6
commit
4ba40f2a17
1 changed files with 2 additions and 0 deletions
|
|
@ -1802,6 +1802,8 @@ def get_id_from_sibling(node, history_only=True):
|
|||
similar_nodes = cmds.listRelatives(parent,
|
||||
type=node_type,
|
||||
fullPath=True)
|
||||
similar_nodes = cmds.ls(similar_nodes, exactType=node_type, long=True)
|
||||
|
||||
# Exclude itself
|
||||
similar_nodes = [x for x in similar_nodes if x != node]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue