When i invoke a modal operator (it highlights faces under the mouse cursor via raycast and bgl) from the tool shelf, it is running in/for the 3D View, the tool shelf is in but not in other 3D Views displaying the same content.
I need to invoke the modal operator again from the others 3D Views toolshelfs to get the desired effect. Is there a way to invoke it for all 3D Views at once?

Because it is not easy to explain i made a short video (30 sec) to show the problem:

edit: i cannot mark as duplicate but the question was kinda answered here already(it was hard to find for me without the hint from batFINGER):

How can I disable Right Click at my UI

Getting the active region

RegionView3D from Region object and vice versa

  • $\begingroup$ My guess without seeing any code is try this ie get your mouse coordinates from the screen and use that to calculate where you are in the region of another area. $\endgroup$
    – batFINGER
    Mar 8, 2018 at 21:48
  • $\begingroup$ I thought that pushed me in the right direction and i found this, too: blender.stackexchange.com/questions/19744/… but i still cannot get it to work. I will add some code to my question. $\endgroup$
    – CoD
    Mar 8, 2018 at 23:00
  • $\begingroup$ And this one Thought I'd done something similar recently. Get your area and region from the screen. $\endgroup$
    – batFINGER
    Mar 9, 2018 at 0:39
  • $\begingroup$ Ok, will look into it tomorrow and report back $\endgroup$
    – CoD
    Mar 9, 2018 at 0:45
  • $\begingroup$ @batFINGER It works. Took me a while to figure it out because i forgot to use context.area.tag_redraw() on all view_3d and not just the context one. $\endgroup$
    – CoD
    Mar 9, 2018 at 14:42


You must log in to answer this question.

Browse other questions tagged .