place_at_pixel
Move a 3D object so a chosen point of its bounding box lands where a photo pixel points, aligning models to match a camera view.
Instructions
Move an object so that a point of its box lands where a picture pixel points. anchor is the point of the box
of the object with its children as fractions (0.5, 0.5, 0 is the middle of the bottom). pixel is [x, y] in a
picture of image_size [width, height], y down. With plane_z the ray from camera hits that horizontal plane.
Without it the ray stops on the first surface of the scene (the object itself is ignored) and, if there is none,
on the plane at the bottom height of the object. It only moves: size and rotation stay. Returns the description of
the object and what it was placed on. Use it to put parts where the photo shows them, after match_camera.
Without a photo use attach, move_to_contact or place_on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pixel | Yes | ||
| anchor | No | ||
| camera | Yes | ||
| object | Yes | ||
| plane_z | No | ||
| image_size | Yes |