Skip to main content
florisd49359064
Participant
September 22, 2024
Answered

Automation Blocks - Delete selected clips based upon graphic parameter

  • September 22, 2024
  • 1 reply
  • 657 views

Hi

 

I am a novice to scripting:

I use the "import properties of clips from spreadsheet" script, to alter parameters in my mogrt clips on my timeline (timeline is V1-V12, each Videotrack contains a seperate mogrt clip).

 

On default there is Graphic Parameter named "Text" that contains the word "DELETE"

 

This way when I run my script, the altered rows will have the parameters changed to "XXX,YYYY etc" , the unaltered rows will still say "DELETE"

 

For instance clip 1 on V1:

Clip Name

Parameter

Value

Clip Path in Project

GAME1_Team1_Team2

Graphic Parameters\Text

DELETE

\YYMMDD_MDXX\GAME::V1\1

 

I basically want to write a script that first:

 

- selects only the clips in my sequence that contain the word "DELETE in the "Graphic Parameter\Text

and then

- deletes those selected clips

I thought by using the clip param block it would work, but sadly it doesn't.

 

Kind Regards,

 

Floris

This topic has been closed for replies.
Correct answer Mathias Moehl

Your block script had two issues

1. you used a block to loop over project items instead of the loop for the clips of a sequence

2. you need to use the Get Clip Parameter Value block to retrieve the actual value of a clip parameter. The Clip Parameter block just returns the name of the parameter, not its value.

 

Does the attached code work?

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
September 23, 2024

Your block script had two issues

1. you used a block to loop over project items instead of the loop for the clips of a sequence

2. you need to use the Get Clip Parameter Value block to retrieve the actual value of a clip parameter. The Clip Parameter block just returns the name of the parameter, not its value.

 

Does the attached code work?

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
florisd49359064
Participant
September 24, 2024

Hi Mathias,

that worked, thanks a lot! 🙂

Mathias Moehl
Community Expert
Community Expert
September 24, 2024

Great! Then best mark the answer as "correct answer" in the forum such that others can see instantly that it is solved 🙂

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