Edit command

fillSlot

Swaps a file into a template slot in place, on all timelines. The slot keeps its id, so clips keep working.

Fields

  • itemNewMediarequired

    The user's file that takes the slot's place.

  • mediaIdstringrequired

    The slot being filled - must have placeholder set.

Refused if the id is unknown or the item is not a placeholder. template.instantiate does this for every slot for you.