Move, Scale, Rotate or Crop a Source
obs_set_scene_item_transformChange the position, scale, rotation, or crop of one source in a specific OBS scene, modifying only provided fields and returning the resulting transform.
Instructions
Change the position, scale, rotation or crop of one source in one scene. Only the fields given are changed. Positions and crops are in canvas pixels (see obs_get_video_settings for the canvas size). Returns the resulting transform.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scene_name": "<scene_name>"
},
"name": "obs_set_scene_item_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale_x | No | Horizontal scale; 1 is the source's native width | |
| scale_y | No | Vertical scale; 1 is the source's native height | |
| crop_top | No | Pixels cropped from the top of the source | |
| rotation | No | Clockwise rotation in degrees | |
| crop_left | No | Pixels cropped from the left of the source | |
| crop_right | No | Pixels cropped from the right of the source | |
| position_x | No | Left edge on the canvas, in pixels | |
| position_y | No | Top edge on the canvas, in pixels | |
| scene_name | Yes | Exact scene name, as returned by obs_list_scenes | |
| crop_bottom | No | Pixels cropped from the bottom of the source | |
| source_name | No | Source name, used to look the item up when scene_item_id is not given | |
| scene_item_id | No | Scene item id from obs_list_scene_items. Takes precedence over source_name |