How to control a Symbol's TimeLine if Symbol has been defined as a Class

Hello!

Usually, when I'm using Symbols with ID's and their own Timelines, the procedure is that:

var symb = hypeDocument.getSymbolInstanceById("Circle");
symb.startTimelineNamed("circleTimeline" );

but, if I've defined Symbols as a Class, how can I excetute their Timelines?

Thanks!

Two ways:

  1. Start via Script
  2. Start via Custom Behavior

startSymbolTimeline.zip (22.3 KB)

1 Like

a symbolinstance will always own a unique id.

let id = sceneEl.querySelector('.yourClass').id

3 Likes

Great!
Thanks!, amazing Technical Support!

2 Likes

Always one step smarter and easier. That´s what I like this forum for... :+1: :grinning:

2 Likes