I'm trying to find if there is a way to get position data from an object while it's being dragged / repositioned by the user, but I'm not finding a way to get values updated until after the drop has completed.
For context, I've tried events with AIHostAdapter as well as native events in the C++ SDK directly, but neither seem to have any events for dragging position updates, their events only seem to be before and after dragging objects, so I'm resorting to polling.
Currently I can poll an object's left/top position during dragging, however the results are the original position until the drag is completed, it's only updated after drop.
Have tried polling:
app.activeDocument.selection[0].left;
app.activeDocument.selection[0].top;
As well as:
app.activeDocument.selection[0].geometricBounds[0];
app.activeDocument.selection[0].geometricBounds[1];
But neither seem to update until after the drag is complete.
... View more