Hi @Ricardo_Zepeda! I think this is not yet possible via the new viewer api, but it should be easy to implement once we figure out the correct pattern. I’ve raised an issue:
To continue the conversation here, i’m pasting it below:
There are several usecases, with different treatments:
allow for users to set the values of each filter group in the case of setStringColorFilter
allow users to set custom colors to various id lists
(1) should be easy, though might need re-architecting the value groups data structure coming from the property manager to not directly depend on the string-to-color lib if user provided color exists
(2) for more flexibility, allow users to pass in a list of [{ids:[], color] to directly paint the viewer elements. this requires an extra pass in the filtering manager, ie customColorState.
No worries! (2) is actually easier to implement, so glad to hear Would also be super curious to know what you’re building if you’ll have time to share.
Will ping as soon as we’ve got some progress on the issue!
Im building a platform to centralize IoT sensor information and data visualization for our innovation park here in Chile, which has different types of projects (prefabs, renewable energies, green buildings…).
i like the flexibility that speckle brings to add different streams of data for the buildings we have in the park, also the speckle viewer gives flexibility to animate/simulate stuff using three.js