set_timeline


Description:

public bool set_timeline (Timeline timeline)

Sets the timeline of the element.

This is used internally and you should normally not call this. A Clip will have its timeline set through its Layer. A Track will similarly take care of setting the timeline of its TrackElement-s. A Group will adopt the same timeline as its children.

If timeline is null, this will stop its current timeline from tracking it, otherwise timeline will start tracking this. Note, in the latter case, this must not already have a timeline set. Therefore, if you wish to switch timelines, you will need to call this function twice: first to set the timeline to null, and then to the new timeline.

Parameters:

this

A TimelineElement timeline (nullable ): The Timeline this should be in

Returns:

true if timeline could be set for this.