MediaPool

鬼猫猫大约 2 分钟

MediaPool

文件夹操作

GetRootFolder()

返回值:Folder

Returns the root Folder of Media Pool

GetCurrentFolder()

返回值:Folder

Returns currently selected Folder.

SetCurrentFolder(Folder)

返回值:Bool

Sets current folder by given Folder.

AddSubFolder(folder, name)

返回值:Folder

Adds a new subfolder under specified Folder object with the given name.

MoveFolders([folders], targetFolder)

返回值:Bool

Moves specified folders to target folder.

DeleteFolders([subfolders])

返回值:Bool

Deletes the specified subfolders in the media pool

Clip 相关

DeleteClips([clips])

返回值:Bool

Deletes the specified clips in the media pool

MoveClips([clips], targetFolder)

返回值:Bool

Moves specified clips to target folder.

GetClipMatteList(MediaPoolItem)

返回值: [paths]

Get mattes for specified MediaPoolItem, as a list of paths to the matte files.

GetTimelineMatteList(Folder)

返回值: [MediaPoolItems]

Get mattes in specified Folder, as list of MediaPoolItems.

DeleteClipMattes(MediaPoolItem, [paths])

返回值: Bool

Delete mattes based on their file paths, for specified MediaPoolItem. Returns True on success.

RelinkClips([MediaPoolItem], folderPath)

返回值: Bool

Update the folder location of specified media pool clips with the specified folder path.

UnlinkClips([MediaPoolItem])

返回值: Bool

Unlink specified media pool clips.

ImportMedia([items...])

返回值: [MediaPoolItems]

Imports specified file/folder paths into current Media Pool folder. Input is an array of file/folder paths.

Returns a list of the MediaPoolItems created.

ImportMedia([{clipInfo}])

返回值: [MediaPoolItems]

Imports file path(s) into current Media Pool folder as specified in list of clipInfo dict.

Returns a list of the MediaPoolItems created.

ExportMetadata(fileName, [clips])

返回值: Bool

Exports metadata of specified clips to fileName in CSV format.

时间线相关

CreateEmptyTimeline(name)

返回值:Timeline

Adds a new timeline with given name.

AppendToTimeline(clip1, clip2...)

返回值:Bool

Appends specified MediaPoolItem objects in the current timeline. Returns True if successful.

AppendToTimeline([clips])

返回值:Bool

Appends specified MediaPoolItem objects in the current timeline. Returns True if successful.

AppendToTimeline([{clipInfo}, ...])

返回值:Bool

Appends list of clipInfos specified as a dict of "mediaPoolItem", "startFrame" (int), "endFrame" (int).

CreateTimelineFromClips(name, clip1, clip2, ...)

返回值:Timeline

Creates a new timeline with specified name, and appends the specified MediaPoolItem objects.

CreateTimelineFromClips(name, [clips])

返回值:Timeline

Creates a new timeline with specified name, and appends the specified MediaPoolItem objects.

CreateTimelineFromClips(name, [{clipInfo}])

返回值:Timeline

Creates a new timeline with specified name, appending the list of clipInfos specified as a dict of

  • "mediaPoolItem"
  • "startFrame" (int)
  • "endFrame" (int)

ImportTimelineFromFile(filePath)

返回值:Timeline

Creates timeline based on parameters within given file.

DeleteTimelines([timeline])

返回值: Bool

Deletes specified timelines in the media pool.

上次编辑于:
贡献者: Yanru Mu,muyanru