No announcement yet.

Set material - More than 1 element index?

  • Filter
  • Time
  • Show
Clear All
new posts

    Set material - More than 1 element index?

    Hi, This is just a quick question. It's not an issue... just curiosity as it will save me some time and add a little blob of optimization.

    Ok so I've set the "o" key to change a material on a character mesh.
    Here is a screen shot of what I'm currently doing:
    Click image for larger version

Name:	Alpha1.PNG
Views:	1
Size:	149.1 KB
ID:	1171178

    So as the image shows I am using 2 set material nodes for 2 element indexes which are 0 and 2.
    I'm just wondering if I can use 1 set material node for both element indexes?


    Realise this is an old post but incase anyone stumbles on it looking for an answer.

    There's no way to set materials of both within one node without creating a ludicrous amount of extra work for yourself. You could technically create a ForLoop that cycles through the element indexes, set it to ignore elements you don't wish to adjust and to execute a materials change when you do. But in all honesty, for setting individual elements materials, what you've done is the most optimised way.