Creating groups and set parent from script

Hello,

Been trying to figure out how to create a group and parent items all from the API.
Anyone has any ideas how to do this?

Many thanks

You can use Timeline.CreateTrack(null, “GroupName”), to create the group and call track.SetGroup(groupTrack) on other tracks to reparent them.

1 Like

Many thanks that works!