Created
November 11, 2015 11:32
-
-
Save tokejepsen/22a1b6aec9296585b907 to your computer and use it in GitHub Desktop.
Nuke: select alembic item by name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nuke | |
items = ['polySurfaceShape15'] | |
node = nuke.selectedNode() | |
scene_view = node['scene_view'] | |
scene_view.setSelectedItems([]) | |
selection = [] | |
for item in scene_view.getAllItems(): | |
for split in item.split('/'): | |
if split in items: | |
selection.append(item) | |
scene_view.setSelectedItems(selection) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment