Forum Discussion
360° image markers - states or object IDs
Hi all,
I'm making a 360° image activity and 2 of my markers will be launching the same popup. I would like to change the state of both these markers to "visited" if either are clicked.
Do markers in these interactions have Object ID's? Or is there some other way I can target them to change their state?
Regards.
1 Reply
- Nathan_HilliardCommunity Member
Short answer is no, the markers have no Object Id's or standard states.
The visible 360 markers and their pulsating animations appear to be drawn on a canvas via code rather than being separate overlaid elements. The clickable objects are invisible elements overlaid onto the canvas. For example, if you squash the canvas, the visible markers deform accordingly, but the clickable regions remain as they were, now out of alignment.
The long answer is yes, you probably could do what you want with code to adjust styling and some event handlers. The clickable elements have their opacity set to 0. If you set it to 1, they become visible, above the canvas. They seem to be similar to, but not exactly the same as the canvas markers, and they roughly track the sizes and positions of the originals. You could inject some styling changes to adjust their color or appearance to simulate state changes.
Storyline, however, appears to auto adjust the marker styling whenever things move or get clicked, so you would need an event handler to reset the styling back to your settings. Maybe something on click, move, resize, or property changes. I would probably make an event monitor specific properties (with debouncing), and change them back to what I want after each SL update.
This is most likely more work than it's worth for the need you described, however. If you were making something extensive, with many markers and various states, then it might be worth the effort to work it out.
Related Content
- 11 months ago
- 2 years ago