MitchellKehn
7/11/2018 - 11:56 PM

Select geo by name

Select all objects in a read geo scene based on whether or not they have a specific substring in their name

search = str(nuke.getInput("select items with this in their name:"))

for node in nuke.selectedNodes("ReadGeo2"):
    scene_view = node['scene_view']
    all_items = scene_view.getAllItems()
    scene_view.setSelectedItems([item for item in all_items if item.find(search) >= 0])