0
$\begingroup$

Is there a simple script I can use to select a Material texture by name? I have many textures, each ending with a new suffix Texture.001, Texture.002 etc.. I am using a Cloud Texture. I may want to select Texture.002 Below is a photo. Essentially I would like to select Texture.002 with python script. With the object being select, linking the Texture.002 to the object.

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ What do you mean by "selecting" a material? In blender you can either create or assign materials. Consider each material can have multiple slots... so please take your time and put more effort into your questions: blender.stackexchange.com/help/how-to-ask $\endgroup$
    – brockmann
    Nov 11 '20 at 10:06
  • $\begingroup$ Perhaps the photo and edit helps explain. $\endgroup$ Nov 11 '20 at 21:38
  • $\begingroup$ can you tell us what your "end" goal is? to you want to rename textures? or assign them to materials? do you want to assign a texture (with specific name) to many materials? or...? $\endgroup$
    – Chris
    Jun 26 at 7:01
0
$\begingroup$

If you click that same spot - its easy to miss because its at the bottom but there is a search box there that you can type text into to get your texture.

$\endgroup$
2
  • $\begingroup$ I need to select the material with python code and assign it to my object which is selected $\endgroup$ Nov 12 '20 at 20:23
  • $\begingroup$ gotcha - sorry that was unclear to me on first reading... $\endgroup$ Nov 13 '20 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.