# IRiAnimView Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | SetViewAspect ([in] BSTR bszViewName,[in] BSTR bszAspect)
HRESULT | OpenPreferences (void)
HRESULT | ZoomToFitSelection ([in] BSTR bszViewName)
HRESULT | ZoomToFitAll ([in] BSTR bszViewName)

## Detailed Description

The IRiAnimView interface provides functionality to access the current time of animation, start and stop playing the animation
Root-level name in the scripting engine's name space: RsAnimView

## Member Function Documentation

HRESULT IRiAnimView::SetViewAspect | ( | [in] BSTR | bszViewName,
|  | [in] BSTR | bszAspect |
| ) |  |  |

Change aspect for animation view.

Parameters:

  `[in]` | bszViewName | Name of animation view. View name represents guid of the Anim View window. The name is equivalant to the window's WinID.
  `[in]` | bszAspect | New aspect name. Can be one of the following: DopeSheet FCurve Story

        RsAnimView.SetViewAspect(bszViewName, bszAspect);

HRESULT IRiAnimView::OpenPreferences | ( | void |  | ) |

Open preferences panel in the stack view.

        RsAnimView.OpenPreferences();

HRESULT IRiAnimView::ZoomToFitSelection | ( | [in] BSTR | bszViewName | ) |

Zoom view to fit selection.

HRESULT IRiAnimView::ZoomToFitAll | ( | [in] BSTR | bszViewName | ) |

Zoom view to fit all keyframes.