<!--
{
  "documentType" : "article",
  "framework" : "USD",
  "identifier" : "/documentation/USD/spinaction",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "SpinAction"
}
-->

# SpinAction

An action that spins a prim.

## Discussion

The default configuration of this action spins an object horizontally on its axis, like a top.

### Declaration

```other
class Preliminary_Action "SpinAction"
```

## Topics

### Properties

[info:id](/documentation/USD/info-id)

The action’s unique identifier.

[affectedObjects](/documentation/USD/affectedobjects)

A list of prims that respond to the notification.

[duration](/documentation/USD/duration)

The amount of time that the objects face the camera.

[revolutions](/documentation/USD/revolutions)

The number of rotations to complete.

[axis](/documentation/USD/axis)

A vector that describes the axis of rotation.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)