mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
add removing of media pool item for clip remove.
no way to remove timeline item so they stay offline at timeline
This commit is contained in:
parent
1984086242
commit
b2588636e9
2 changed files with 13 additions and 0 deletions
|
|
@ -163,3 +163,10 @@ class LoadClip(plugin.TimelineItemLoader):
|
|||
timeline_item.SetClipColor(cls.clip_color_last)
|
||||
else:
|
||||
timeline_item.SetClipColor(cls.clip_color)
|
||||
|
||||
def remove(self, container):
|
||||
namespace = container['namespace']
|
||||
timeline_item = lib.get_pype_timeline_item_by_name(namespace)
|
||||
take_mp_item = timeline_item.GetMediaPoolItem()
|
||||
|
||||
lib.remove_media_pool_item(take_mp_item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue