Announcement

Collapse
No announcement yet.

Find texture and apply it to the material

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Find texture and apply it to the material

    Hello,

    I have folder called Textures and inside that folder I have lot of textures (about 100) and I would like to dynamically apply it to the actor (mesh).

    Problem is that I don't know how to find texture from string. I know that I have to create Material Instance with param Texture and I can add texture to that param and then apply that Material to the mesh (actor).

    But I don't know how to find that texture. Imagine that you have function called ApplyTexture like this, and you have only string:

    Click image for larger version

Name:	texture.jpg
Views:	2248
Size:	10.3 KB
ID:	1489739

    #2
    t0msk , here is a way to do it ( in this example the textures are inside a folder named "Textures")

    Click image for larger version  Name:	test480.PNG Views:	1 Size:	100.3 KB ID:	1490198
    Website [ LINK ]
    Twitter [ LINK ]
    Support ! [ LINK ]

    Comment


      #3
      "Get Asset by Object Path", "get Asset","get Asset Registry" are they Rama's plugin???

      Comment


        #4
        I found them by removing context sensitive in right click search (i was in event graph)

        Comment

        Working...
        X