This is outside the scope of what typical tools in blender need to do, as such - I dont think it should be added for a one off case...
If Im wrong and there are certain class of tools which need this- we could review how operators could work in these cases. So - with pure python api this is possible - you can inspect all spaces, check their size and compare with the mouse coordinates - so theres nothing stopping you writing this function your self. For demo mode addon I needed to scan all screen spaces to check weather to render or playback an animation - so if you like to see an example of looping over spaces, check this script - it comes with blender. On Fri, Jun 15, 2012 at 3:00 PM, Gert De Roost <[email protected]> wrote: > Good day, a simple request, but necessary for my addon work: > I would like to have some means of determining which Space is under the > mouse pointer. This for addons (like my FloodSel, EdgeTune and a possible > preselection highlighting addon) that become advantageously more versatile > and interactive when a user can divide several operations within the addon > operation over multiple 3dviews; for this to work I need to calculate the > right edge screen coordinates for each 3d view and then check over which 3d > view Space user is with mouse. > As an alternative, being able to check absolute Space x/y position and > width/height would enable to accomplish the same goal. > I understand the "one Space per operation" paradigm might seem to work well, > but at least for some addons interaction on different 3d views might very > well be beneficial overall and since I am pro extra power and versatility > towards the script writer, I would like to again ask for access to Space > under mouse. > > Kind regards, > Gert. > > _______________________________________________ > Bf-python mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-python > -- - Campbell _______________________________________________ Bf-python mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-python
