# Transition

> A dissolve or a wipe.

Symbols in this group are spelled `otio_transition_…`. An SDK drops that prefix.

## `enabled`

`otio_transition_enabled` · getter

Returns whether a transition is applied.

```c
OtioStatus otio_transition_enabled(
    const OtioDocument *source,
    OtioNode node_handle,
    bool *out_enabled,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `source` (optional) | `document` | document in |
| `node_handle` | `node` | receiver |
| `out_enabled` | `bool` | output |
| `out_error` | `text` | error |

## `in_offset`

`otio_transition_in_offset` · getter

Returns how far a transition reaches into the item before it.

```c
OtioStatus otio_transition_in_offset(
    const OtioDocument *source,
    OtioNode node_handle,
    OtioRationalTime *out_offset,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `source` (optional) | `document` | document in |
| `node_handle` | `node` | receiver |
| `out_offset` | `OtioRationalTime` | output |
| `out_error` | `text` | error |

## `new`

`otio_transition_new` · constructor

Creates a transition. Its offsets start at zero.

```c
OtioStatus otio_transition_new(
    OtioDocument *target,
    const char *name,
    const char *transition_type,
    OtioNode *out_node,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `target` | `document` | document mut |
| `name` (optional) | `text` | input |
| `transition_type` (optional) | `text` | input |
| `out_node` | `node` | output |
| `out_error` | `text` | error |

## `out_offset`

`otio_transition_out_offset` · getter

Returns how far a transition reaches into the item after it.

```c
OtioStatus otio_transition_out_offset(
    const OtioDocument *source,
    OtioNode node_handle,
    OtioRationalTime *out_offset,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `source` (optional) | `document` | document in |
| `node_handle` | `node` | receiver |
| `out_offset` | `OtioRationalTime` | output |
| `out_error` | `text` | error |

## `set_enabled`

`otio_transition_set_enabled` · setter

Sets whether a transition is applied.

```c
OtioStatus otio_transition_set_enabled(
    OtioDocument *target,
    OtioNode node_handle,
    bool enabled,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `target` | `document` | document mut |
| `node_handle` | `node` | receiver |
| `enabled` | `bool` | input |
| `out_error` | `text` | error |

## `set_in_offset`

`otio_transition_set_in_offset` · setter

Sets how far a transition reaches into the item before it.

```c
OtioStatus otio_transition_set_in_offset(
    OtioDocument *target,
    OtioNode node_handle,
    OtioRationalTime offset,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `target` | `document` | document mut |
| `node_handle` | `node` | receiver |
| `offset` | `OtioRationalTime` | input |
| `out_error` | `text` | error |

## `set_out_offset`

`otio_transition_set_out_offset` · setter

Sets how far a transition reaches into the item after it.

```c
OtioStatus otio_transition_set_out_offset(
    OtioDocument *target,
    OtioNode node_handle,
    OtioRationalTime offset,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `target` | `document` | document mut |
| `node_handle` | `node` | receiver |
| `offset` | `OtioRationalTime` | input |
| `out_error` | `text` | error |

## `set_type`

`otio_transition_set_type` · setter

Sets the kind of transition.

```c
OtioStatus otio_transition_set_type(
    OtioDocument *target,
    OtioNode node_handle,
    const char *transition_type,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `target` | `document` | document mut |
| `node_handle` | `node` | receiver |
| `transition_type` | `text` | input |
| `out_error` | `text` | error |

## `type`

`otio_transition_type` · getter

Returns the kind of transition, such as `"SMPTE_Dissolve"`.

```c
OtioStatus otio_transition_type(
    const OtioDocument *source,
    OtioNode node_handle,
    OtioBuffer *out_type,
    OtioBuffer *out_error);
```

| Parameter | Type | Role |
| --- | --- | --- |
| `source` (optional) | `document` | document in |
| `node_handle` | `node` | receiver |
| `out_type` | `text` | output |
| `out_error` | `text` | error |

---

Page: https://otio-rust-docs.vercel.app/reference/transition/
