Multi Display - Detect Screen Mouse Is In

I have a multi display setup that has different camera views on each display. All the displays have their own camera with a script that allows me to orbit the camera with the mouse. However, when I go to pan, rotate, etc… the input is detected across all cameras. I need a way to specify that only the camera for the display I am currently interacting with will move.

Is there a way to achieve this?

Have a look at this: Display scripting documentation, the “RelativeMouseAt” function.

I’ve not used it, but it apparently returns a screen relative coordinate of the mouse, where Z indicates the display where mouse input is being handled.

Either z may be useful, or if the relative coordinates are not within the boundary of a display then the control is probably not intended for that display.