
Thank you
ix.application.get_selection().set_selection('global','Global', items)
import ix
item_List = ix.api.OfObjectArray()
ix.application.get_factory().get_all_objects("ProjectItem", item_List)
ix.application.get_selection().set_selection('global','Global', item_List)
00:05:50 Traceback (most recent call last):
00:05:50 return _framework.AppSelection_set_selection(self, *args)
00:05:50 TypeError: in method 'AppSelection_set_selection', argument 4 of type 'CoreVector< OfItem * > const &'
00:05:50
"""
select all Texture Nodes in the scene
"""
import ix
item_List = ix.api.OfObjectArray()
ix.application.get_factory().get_all_objects("ProjectItem", item_List)
selection = []
for i in range(item_List.get_count()):
if item_List[i].is_kindof("TextureStreamedMapFile") == True or item_List[i].is_kindof("TextureMapFile") or item_List[i].is_kindof("TextureMap"):
selection.append(item_List[i]) # append to selection list
ix.application.get_selection().set_selection('global','Global',selection[0] ) # select first item in selection list
for sel in range(len(selection)-1):
ix.application.get_selection().add_item('global',selection[sel+1],'Global') # select all items