Hi,
I’ve been trying to send the screen coordinates of a ZBrush interface item to a dynamic library, but I am failing at the last hurdle.
Using [IH/VPos,…] and [IWidth/Height,…] commands I can accurately detect the coordinates of a ZBrush interface item within the ZBrush window, but not the position of the ZBrush window itself. No problem. My script requires the user to activate it using a hotkey while the cursor is hovering over an interface item. I can instead send the coordinates as an offset from the ZBrush cursor position and make a system call to get the cursor screen coordinates from my dynamic library. Apply offset and voila! Everything works.
Except reading the [IHPos,…] of the Projection Master button, for example, results in the coordinates of the button in the Plugin palette, not the Projection Master button I was hovering over next to the canvas (in the default UI config).
Anyone come across this problem and solved it? I should mention that I have only tried this in the Mac version of ZBrush 4R5 but I do not imagine anything has changed in ZBrush 4R7P2 on PC.