Convert coordinates between spaces
projectConvert points, boxes, quads, lines or polygons between coordinate spaces at a timeline second, through the film's real transforms: a clip's fit and crop, its x, y, scale, rotation, flips, keys and focus zoom, its groups, the camera, and a preview's scale and region. Use it instead of converting by hand. Examples: a point you picked on preview pv_x (space preview, previewId) to the source pixel it shows (to: source); a source pixel of an asset at 3s to film pixels; a tracked surface's corners (space surface, trackId, points [[0,0],[1,0],[1,1],[0,1]]) to film; a UV on a tracked sign to film to place a label on it. Each result gives the points in the target space and in film, film_norm and source, the source second and frame shown, whether each point is in frame (and why not), and the chain. A geometry that cannot be converted comes back with ok false and the reason; the others still convert. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The space to convert into. | |
| time | Yes | Timeline seconds for every geometry that has no time of its own. A preview point uses its tile's time. | |
| detail | Yes | How much the answer says: brief is one line per result with its ids; normal (null) adds the transform; full adds every matrix of the chain. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| geometries | Yes | What to convert: points, boxes, quads, lines or polygons, each with the space it is in. |