# Input-error code `'rotation-twice'`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts`, `tables/problems.json` and `services/onsite-scripter/scripts/contract-docs-what-to-do.json` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

A member of [`InputErrorCode`](../api/InputErrorCode.md) · stable · since 2.0.0

An untyped pose or patch with both rotations, `rotationDeg` and `quaternion`.

## What to do

Write one rotation per pose: `rotationDeg` or `quaternion`, never both; to write back a [`Pose`](../api/Pose.md) you read, copy `{ position, quaternion, scale }`.

```ts
const { position, quaternion, scale } = part.pose;
await part.set({ pose: { position, quaternion, scale } });
```

## Where the declaration names it

- [`PartActions.set`](../api/PartActions.set.md): Errors: rejects HoloInputError on an invalid patch (both rotations: 'rotation-twice').
- [`PoseInput`](../api/PoseInput.md): A pose to write, with at most one rotation: `rotationDeg` or `quaternion`, never both (a type error; an untyped call with both rejects HoloInputError 'rotation-twice').

The set is open: handle a code you don't know (`'other'`).
