The getMidPos native AI script function returns the position (x, y) of the current group.
(x: f, y: f)getMidPos() // getMidPos__ff
(x, y)getMidPos();
This example code returns the current position (x, y) of the group.