Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I put all face material IDs in a list to remove duplicates, but there are missing ones
ID=[]
for i in range(1,rt.selection[0].numfaces): #start from 1
ID.append(rt.polyop.getfacematid(rt.selection[0],i)) #Add material ID to list
ID=list(set(ID)) #"set" deduplication>>> ID
[1, 9, 15, 19, 20, 25]
However, when one of the special faces of the object is selected, its material ID actually shows 6.
why?
(The sample has been uploaded.)
Solved! Go to Solution.