# allyhub scenery motion

> How one camera of a 3D scenery moves over a stretch, drawing nothing: its channels in its own frame, speed, jerk, smoothness, clearance, and how each named object moves on the frame

Source: https://allyhub.com/docs/reference/cli/scenery-motion · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub scenery motion [item] [options]
```

## Arguments

| Argument | Type | What it is |
| --- | --- | --- |
| `<item>` | string | The scenery: its id in allyhub.yaml, or its module's file, listed or not |

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `--times` | list of string |  | Seconds of scenery time for the word and anchor references the scenery's moves and its update (w.time) are timed by, as a video's part gives them: @turn=3.2,@show=5.1 (@turn+0.2 is found from @turn); over --piece's |
| `--piece` | string |  | The video whose scenery layers give those times (default, when one is needed and --times gives none: the one video of the project that draws this scenery) |
| `--camera` | string or object |  | The camera: a named camera of the scenery, or one written in JSON as a scenery's code writes a CameraState: {"position":[0,1.6,3],"target":"crate","lens":26}; its fields position, target, direction, yaw, pitch, up, roll, lens (default 26), lensFrame, fov, near (default 0.05), far (default 500), aperture, focus, ev |
| `--move` | string |  | The scenery's named move |
| `--from` | number | `0` | Where it starts, s |
| `--to` | number | `10` | Where it ends, s |
| `--size` | string | `"540x960"` | The frame, WIDTHxHEIGHT |

## Global options

`--dir <value>`: the project's folder; default the one around where it is run. `--json`: print the result as JSON.

## Output

With `--json`, the command prints an object with these fields:

| Field | Type | What it is |
| --- | --- | --- |
| `file` | string |  |

## Examples

```bash
allyhub scenery motion room --move dolly
allyhub scenery motion room --move swing --times @turn=2 --to 4
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**3d**: Building a 3D scenery and its cameras

[`add search`](https://allyhub.com/docs/reference/cli/add-search.md) → [`add`](https://allyhub.com/docs/reference/cli/add.md) → [`scenery`](https://allyhub.com/docs/reference/cli/scenery.md) → [`scenery view`](https://allyhub.com/docs/reference/cli/scenery-view.md) → [`scenery map`](https://allyhub.com/docs/reference/cli/scenery-map.md) → [`scenery see`](https://allyhub.com/docs/reference/cli/scenery-see.md) → [`scenery measure`](https://allyhub.com/docs/reference/cli/scenery-measure.md) → `scenery motion` → [`scenery solve`](https://allyhub.com/docs/reference/cli/scenery-solve.md) → [`scenery bake`](https://allyhub.com/docs/reference/cli/scenery-bake.md) → [`inspect fidelity`](https://allyhub.com/docs/reference/cli/inspect-fidelity.md) → [`dev`](https://allyhub.com/docs/reference/cli/dev.md)
