Hi everyone. I am working on my portraits mod now and I face a problem. In vanilla game play, I saw that different pop stratum uses different portrait, e.g., synth 8, the rulers wear red clothes while specialists wear blue ones. Similarly, I want to assign different portrait for the pops based on the stratum. I checked "portraits.txt" under gfx folder, the thing I can see is each portrait group in vanilla species has a parameter "clothes selector", which is defined in "clothes.txt" under assest_selectors folder.
Now my situation is, all of my portraits are in different posture, which means it is hard to cut the clothes off the characters and put them on another characters. I saw some codes in "clothes.txt" and try to use them in "protraits.txt" but it doesn't work. Besides, I want to assign a group of portraits to a specific pop stratum instead of one single portrait. How should I do?

Now my situation is, all of my portraits are in different posture, which means it is hard to cut the clothes off the characters and put them on another characters. I saw some codes in "clothes.txt" and try to use them in "protraits.txt" but it doesn't work. Besides, I want to assign a group of portraits to a specific pop stratum instead of one single portrait. How should I do?
I find these codes from "clothes.txt", but not working in "protraits.txt", which causes the image missing in most pop slots (but not all of them are missing, very few of pop slots still can show the images, weird.)
Code:por1 = {is pop category = ruler} por2 = {OR = {is pop category = worker is pop category = slave is pop category = simple drone}}