As shown in the screenshot below,
I assign an image texture to the multiple faces with mouse,
But I need to do it with python API, how to do it?

Asked
Active
Viewed 18 times
0
-
1You cannot assign textures to faces in current versions. You assign faces to material slots, then materials to material slots and then use textures in materials. You can do that with Python, but you need to do everything in the way you would manually - create material slot, material and use a texture in it. – Martynas Žiemys Mar 23 '23 at 08:45
-
2@MartynasŽiemys: are you sure he doesn't mean that "assign" button which at least "give the feeling" of assigning faces to a material? – Chris Mar 23 '23 at 08:48
-
@Chris Might be. – Martynas Žiemys Mar 23 '23 at 08:52
-
@Chris Yes, I use "assign" button to do it. or another way is ok, I rewrite it in a new question. – zwl1619 Mar 23 '23 at 09:13
-
@zwl1619 please edit the question and rewrite it here. Please also explain in more detail what you mean, what you need this for and all the context of the question. What are you trying to achieve here? The more information you provide, the better the chances for you to get good answers. – Martynas Žiemys Mar 23 '23 at 09:48