Duplicating overlay button per camera view

Hi,

As I understand, user defined events are global (not associated to a camera or to a view).

This means that for X views, X different events should be created and configured.

My question is: Is there a better option doing this?

For example, configure a single event, and place several buttons associated with it in several views, with one of the event fields indicating the view/camera where the button was pressed on?

Thank you

No, currently there is no better way. When you use a Smart Client overlay button it will trigger the user-defined event, but it will not include any additional data to hint on which camera the button that was clicked was situated.

In MIP SDK 2018 R2 and Smart Client 2018R2 Milestone will introduce something new which might fit instead of using Smart Client overlay buttons. Milestone will introduce ActiveElementsOverlay and this will enable development of another kind of buttons or similar.

Sneak peak of the introduction text:

ImageViewerAddOn now exposes three new methods (all starting with ‘ActiveElementsOverlay’) allowing for adding, updating and removing objects of classes that derive from the WPF class UIElement. Examples of such classes are Button, TextBlock and UserControls. This enables plug-ins to add interactive elements on top of the video.

MIP SDK 2018 R2 is planned to release June 7 and will include a sample showing this new functionality.