I have a material node setup in cycles that I am trying to get an image texture file path to automatically updated based on the name of the object that the material is applied to. For example, if the object name is 123456 the image texture path should update to /Image-Textures/123456.png in the root folder of the .blend location.

Otherwise I am having to make a new material for every object since each has a different image texture. I think there should be a way to do this with python but my skills in that department are rather lacking.


Your Answer

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

Browse other questions tagged or ask your own question.