We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Getting IMAGE TEXTURE from iterated Material from iterated object

Home Forums Programming Getting IMAGE TEXTURE from iterated Material from iterated object

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32985
    GlifTekGlifTek
    Licensee

    Hi
    I’m searching now on how to accomplish this, and may find how before answered,
    But just asking in case I don’t…

    I am generating new plane objects, then applying a pre designed blender material to them.

    I am renaming each material to be an iterated name, ie: Mat_001, Mat_002 etc…

    HOWEVER
    the specific THING I need to have access to, is the IMAGE TEXTURE in the copied material iterations.

    How can I go and make EACH new material for each new object generated, have a NEW iterated name, so that THAT new renamed texture in the new material,in the new object, can be replaced with a UNIQUE, per-designated IMAGE?

    THANKS!

    • This topic was modified 1 month ago by GlifTekGlifTek.
    #32989
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    when you clone materials in Blender, the textures are shared between them, so if you try to replace a texture in one othem, it is replaced in all materials that share this texture.

    To prevent this, you have to “unshare” the image texture in Blender, making it unique.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #33044
    GlifTekGlifTek
    Licensee

    Oh I see…
    The little “shield” icon?
    See the setup I have now, is 20+ planes (2mx2m each) with the same material copied over and over as unique material makes, each with their own unique image texture already.

    Replacing their image textures works fine now.

    Thing is, I want to have the scene habe just ONE object/material/texture, then clone it however times users need, and use code to iterate the new materials and their textures add unique, (as I already have them, but just generated on the fly).

    I have a previous version that does ALL of this, except making the copied(cloned) image texture be new and unique, ready to be replaced with unique image.

    Current version works fine, but I’m trying to make it more dynamic and optimized.

    I can rename the new objects and materials… But…
    Any way to code the unique iteration of the cloned materials image texture?

    #33074
    Yuri KovelenovYuri Kovelenov
    Developer

    Well… I dunno :scratch: Maybe my fellow devs will help?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #33085
    GlifTekGlifTek
    Licensee

    That would be rad!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.