Move / scale an element
update_transformMove or scale a slide element by replacing or multiplying its transform. Use absolute mode to set exact position/size, relative mode to shift or resize from current values.
Instructions
Moves and/or scales a page element (batchUpdate updatePageElementTransform). mode=absolute REPLACES the element's whole transform: translate_x_pt/translate_y_pt become the new top-left-ish origin and omitted scales default to 1 — NOT to the current values, so an absolute move of a scaled element also resets its scale unless you resend it. mode=relative multiplies onto the existing transform: translate shifts by the given points, scale 2 doubles the current size (scaling happens around the origin, which also shifts the element — for a simple move prefer relative translate only). Element geometry to reason from is in get_page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | absolute = replace the whole transform; relative = multiply onto the current one. | |
| scale_x | No | Horizontal scale factor (default 1). | |
| scale_y | No | Vertical scale factor (default 1). | |
| object_id | Yes | The page element's object id (from list_slides). | |
| translate_x_pt | No | Horizontal translation in points (default 0). | |
| translate_y_pt | No | Vertical translation in points (default 0). | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |