ui_drag
Simulates a mouse drag in Cascadeur by pressing, moving in steps, and releasing so the app updates between moves, useful for dragging control points with AutoPosing.
Instructions
Drag with the mouse like a user: press at the start, move in steps (button held), release at the end. Start: object (scene object name, projected into the 3D viewport), ref, query or window x/y. End: to_x/to_y or offset dx/dy in window coordinates. Each step runs separately so Cascadeur updates between moves (e.g. AutoPosing while dragging a control point). Returns the actual start/end points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| dx | No | ||
| dy | No | Negative moves up on screen. | |
| ref | No | Element ref from the latest ui_tree or dialogs result. | |
| to_x | No | ||
| to_y | No | ||
| query | No | Text, tooltip, actionId or objectName to find an on-screen element. | |
| steps | No | Intermediate move events (default 20). | |
| button | No | ||
| method | No | qtest (default) goes through Qt's window-system input path; event sends QMouseEvents directly. | |
| object | No | Scene object to start from, e.g. 'mixamorig:LeftHand_MainPoint'. | |
| window | No | Window index or title substring (default: focused/main window). | |
| fov_deg | No | Viewport vertical FOV for object projection (default 30). | |
| hold_ms | No | Pause after pressing before moving (default 80). | |
| modifiers | No | ||
| settle_ms | No | Milliseconds to wait for the UI to update before returning (default 150). | |
| duration_ms | No | Total time spent moving (default 400). |