Hi Shapespark team,
I’m customizing a Shapespark scene embedded in an iframe, and I have a requirement to synchronize the material selection the user makes in the default Shapespark palette with my external UI.
Specifically, I would like to:
Detect when a user clicks a material sphere in the default material picker (the palette that appears when an editable material is clicked).
Get information about which material was selected and to which mesh/node it was applied.
Send this information to the parent window (outside the iframe) to keep the dropdown and thumbnails in sync.
I have reviewed the Viewer API documentation, but I don’t see any documented event like viewer.onMaterialClicked() or similar.
Questions:
- Is there any official way to get a callback when the user selects a material in the default material picker?
- If not, is there any supported workaround to track or override this behavior?
Any guidance or examples would be greatly appreciated.
Thank you!