What is the formula for changing texture dynamic component. onClick?

OnClick only works with a limited set of functions - and setting the material is NOT one of them.

The work-around is to use OnClick to SET the value of a custom attribute. Then set the built-in Material attribute using the IF function as follows for the Material attribute:

Attribute: Your Custom Attribute
OnClick: SET(‘Your Custom Attribute’, 1,2,3,4)
Material Attribute: = something that chooses material based on your custom attribute - nested IF functions or a Choose function.

Note I’m NOT at my SketchUp capable computer as I write this, so treat this as a general approach with no guarantee I got the syntax correct!

2 Likes

Thanks, This is really helpful . I will try it out later .

See:


… and: