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

Automation Blocks : Copying to Another tracks and then deleting those clips

New Here ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

Hello! Mathias Moehl

Thank You for wonderful Extention!
I was trying out something but i don't know how to do it. 

 

My requirements are something like this,

 

Let's say i have 50 to 80 photos on V1. Now,
 what i want is,

1,5,9 ..... numbers clips or photos are on the V2. (On the same place as V1). 

2,6,10 .... numbers clips or photos are on the V3. (On the same place as V1).

3,7,11 .....numbers clips or photos are on the V4. (On the same place as V1).
4,8,12 .....numbers clips or photos are on the V5. (On the same place as V1).


i just want those 50 to 80 photos on differnet Tracks based on above conditions. How can i do that? Thank you!

 

TOPICS
How to

Views

117

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 06, 2025 Jan 06, 2025

Oh, yes, I confused inPoint with startTimeInSequence.

Therefore, the clips where inserted at the wrong time and therefore, you probably didn't see them at all.

Here is a revised version, which also sets the end point properly:

Screenshot 2025-01-07 at 08.04.51.png

 

 

Setting the end point was actually a bit tricky, since we needed to coount how many clips we already inserted in order to adjust the end point of the correct clip. (See here how to create paths to access a particular clip)

 

Code attached.

Votes

Translate

Translate
Community Expert ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

I haven't tested this code, but this should get you started:
Screenshot 2025-01-06 at 15.17.13.png

In a nutshell, I loop over all clips of V1 and insert foe each of them one copy in another video track. Which video track is used, is saved in the variable "track to insert to". This variable starts with value 2, hence, the first clip is inserted in V2. After each insertion, the value is increased by one, such that the next clip is inserted in V3 etc. the if statement checks if we have reached the last track we want to use. So instead of inserting at track V6, we go back to V2 again.

 

(code attached)

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

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
community guidelines
New Here ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

Hello! Thank You for the Reply! Really appreciated. 

I try to run this script in my sequence, but nothing happend. 

consolve :
insert project items into sequence '2'

insert clip \main.prproj\RawContent\4\6.1_4.jpg at time 3599.9964

insert project items into sequence '2'

insert clip \main.prproj\RawContent\4\6.1_2.jpg at time 3600.66373333333

execution result:undefined

destructor final end point 'main script' reached

(Sorry, I am very noob at this.)

Votes

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
community guidelines
Adobe Employee ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

There's a follow up, @Mathias Moehl...Possible to assist?

 

Thanks,
Kevin

 

Kevin Monahan - Sr. Community & Engagement Strategist – Pro Video and Audio

Votes

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
community guidelines
Community Expert ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

LATEST

Oh, yes, I confused inPoint with startTimeInSequence.

Therefore, the clips where inserted at the wrong time and therefore, you probably didn't see them at all.

Here is a revised version, which also sets the end point properly:

Screenshot 2025-01-07 at 08.04.51.png

 

 

Setting the end point was actually a bit tricky, since we needed to coount how many clips we already inserted in order to adjust the end point of the correct clip. (See here how to create paths to access a particular clip)

 

Code attached.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

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
community guidelines