Here's a quick CodePen showing how to control a component's timeline from the host codebase (in this case, a click event.)

https://codepen.io/zackbrown/pen/KrPYjK?&editors=1010

If you're using React, you can get a reference to that component object like so:

<MyAnimatorReactComponent
  onAnimatorComponentDidMount={(animatorComponent: AnimatorComponent) => {

  }}
/>
Did this answer your question?