Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Copy/Paste sequence using Script

Explorer ,
May 08, 2023 May 08, 2023

Hi everyone!

 

Using script I’m trying to do something that should be relatively easy, but I can’t seem to find any documentation about it.

 

Here’s an example:

- I have Sequence X placed inside Sequence A.

- Sequence X is set as an adjustment layer and has effects on it.

- I want to simply copy the Sequence X from Sequence A, into Sequence B.

 

Is it even possible? Any feedback would be really helpful.

 

Here is a short video where I explain exactly what I’m trying to do:

 

TOPICS
How to , SDK
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 09, 2023 May 09, 2023

Sequence objects have a clone() function, but based on your description, it sounds like you want to clone a trackItem, which happens to be based on a sequence. There's no API for that; conceivably, you could clone the whole sequence containing that trackItem, then delete everything you don't need. Stipulated; not an elegant solution.

Translate
Adobe Employee ,
May 09, 2023 May 09, 2023

Sequence objects have a clone() function, but based on your description, it sounds like you want to clone a trackItem, which happens to be based on a sequence. There's no API for that; conceivably, you could clone the whole sequence containing that trackItem, then delete everything you don't need. Stipulated; not an elegant solution.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 09, 2023 May 09, 2023

Yeah, I want to copy track items. The only solution I can think of is to get the project item of the track item, then put it in another sequence. After that, I can modify the timing and effects. is that the only solution?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 09, 2023 May 09, 2023
LATEST

That approach will get you most of the way there; there are some aspects of trackItems for which there are no APIs, which is why I recommended the clone() approach.

 

what's the entire workflow you're trying to support?

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