Highlighted

How to duplicate Item Object

New Here ,
Apr 07, 2020

Copy link to clipboard

Copied

(machine translation by DeepL)

 

Is there a method to duplicate an Item Object?
The CompItem Object has a duplicate method, but other Item Objects do not seem to have it.

 

"app.executeCommand(app.findMenuCommandId("Duplicate"))" can replicate it, but it has the following problems

1.First of all, it must be selected by "Item.selected".
2.Can't get the item object after duplication.
3. It is an undocumented method.

 

Any way to solve these would be very helpful!
Thank you very much.

Topics

Scripting

Views

168

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to duplicate Item Object

New Here ,
Apr 07, 2020

Copy link to clipboard

Copied

(machine translation by DeepL)

 

Is there a method to duplicate an Item Object?
The CompItem Object has a duplicate method, but other Item Objects do not seem to have it.

 

"app.executeCommand(app.findMenuCommandId("Duplicate"))" can replicate it, but it has the following problems

1.First of all, it must be selected by "Item.selected".
2.Can't get the item object after duplication.
3. It is an undocumented method.

 

Any way to solve these would be very helpful!
Thank you very much.

Topics

Scripting

Views

169

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Apr 07, 2020

Copy link to clipboard

Copied

Firstly, what's your end goal with this functionality, what items are you trying to duplicate? Duplicating footage is usually unnecessary and only bloats your project file, unless you're trying to interpret footage in 2 different ways.

There isn't a duplicate method for footage items far as I know, so the only other way besides executeCommandId() is to get the path, and re-import the footage, then move and rename as you like.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
u310i LATEST
New Here ,
Apr 07, 2020

Copy link to clipboard

Copied

Thank you for your reply.

The goal is to replicate multiple types of items, including subfolders in a FolderItem, while maintaining the tree structure.

As you say, because there is no description in the guide, "duplicate" other than CompItem seems to have to give up, duplicate or import individually, and maintain the tree structure.

Thank you very much!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...