Sample Object Transform at Frames
sample_transformSample an object's transform at specified frames to verify alembic, constraint, or xpresso-driven animation.
Instructions
Evaluate the scene at each requested frame and return the object's transform. Useful to verify alembic / constraint / xpresso-driven animation without writing a bespoke exec_python sampler.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Time base override (default: doc fps). | |
| space | No | Transform space (default "global"). | |
| format | No | Output format: "off_rot" returns pos+rot(HPB radians); "matrix" returns 4x3 rows. | |
| frames | Yes | Frames to sample (1..500). The scene is evaluated at each frame via ExecutePasses. | |
| handle | Yes | Target object handle (must resolve to a BaseObject). | |
| restore_time | No | Restore the original playhead after sampling (default true). |