Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created November 11, 2015 11:32
Show Gist options
  • Save tokejepsen/22a1b6aec9296585b907 to your computer and use it in GitHub Desktop.
Save tokejepsen/22a1b6aec9296585b907 to your computer and use it in GitHub Desktop.
Nuke: select alembic item by name
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