Is it possible to have many object display color 'states'?

Hello,

I would like to save multiple different object display color states in a model. Layer states controls the color of the layer itself, but not the objects within it.

For example, I would like to have one mode where all objects are white, then another where they are colored by volume. I can easily write a GH script to define these colors and apply them through Elefront, but would now like save these different object display color states so I can toggle between them.

Thanks,

Dan

Hi @lignindes ,

If you already have the colors defined in Elefront I think the easiest method would be to switch between the states by indexing them and then choosing one at a time with a value list or slider or other method.

Please share you GH file and I’d be happy to help

Hi Dan -

It looks like this is something that should be available in the snap shots but that isn’t currently the case.
RH-76250 SnapShot: Additional object properties

Currently, an object’s material assignment is stored in a snap shot, so you could create materials for each color and assign that to the objects, and then either use a rendered display mode or a shaded display mode that is modified to use an object’s material color.
-wim

@wim

Thanks so much for the reply, your proposed solution and for creating a youtrack for this. I think it would be a useful addition!

@michaelvollrath thanks for the suggestion, but my hope was to toggle between states without GH.

Dan

1 Like