Material Selection Logic Question

tcarpenter
I have a bunch of components to add/change materials to with logic rules. Seems like I’m going to have to add 70some odd rules to make it work - but I could be doing something wrong. I see there’s an option to set a pr…

Comments

3 comments

  • Comment author
    tcarpenter

    I have a bunch of components to add/change materials to with logic rules. Seems like I’m going to have to add 70some odd rules to make it work - but I could be doing something wrong. I see there’s an option to set a property, and material name is one, but all I get is a flashing field. So maybe that’s not integrated yet?

    If not, anyone have a sample of a custom script you’re using to set materials?

    Thanks for any advice…

    0
  • Comment author
    Matthew Seeger

    Is your concern that you don’t want to create 70 rules like:
    If "Red” -> Use Red
    If "Blue” -> Use Blue
    … x70?

    You should not have to do that. A "Set Material” Rule on a Model can target multiple nodes and use the attribute value.

    You select multiple Nodes like this:

    Use the Value of an Attribute Like This:

    0
  • Comment author
    tcarpenter

    Aha! I knew I was doing something wrong - thanks Matt!

    0

Please sign in to leave a comment.