Copy link to clipboard
Copied
Hi @Mathias Moehl !
I'm creating a script that involves adding an effect to a clip. I found the Execute_Code_Examples_Pr.xml block, which has nearly what I need.
Is there a way to modify the 'add effect to clip' block so I can add my personal Effects PRESETS? Simply using the name of the preset in the effectName variable doesn't work.
Cheers
Sam
1 Correct answer
That should be possible with the Set Clip Parameter block.
The dropdown in that block, which lists the available parameters, won't contain all attributes of all possible effects by default. But you can simply select a clip in the timeline, to which this effect is applied and click the "refresh" icon next to the dropdown. This will update the dropdown to contain all parameters of the selected clip (see Clip Param block). default
Copy link to clipboard
Copied
Hi Sam,
Bruce Bullis knows everything about the scripting engine and he says that there is no way to apply custom presets via scripting, unfortunately:
https://community.adobe.com/t5/premiere-pro-discussions/extendscript-import-effect-preset-file/td-p/...
Copy link to clipboard
Copied
Thanks, @Mathias Moehl !
So, workaround - any way to write a script that changes the values of an effect on a clip?
In this case, I want to use the crop effect at 50% left crop.
Copy link to clipboard
Copied
That should be possible with the Set Clip Parameter block.
The dropdown in that block, which lists the available parameters, won't contain all attributes of all possible effects by default. But you can simply select a clip in the timeline, to which this effect is applied and click the "refresh" icon next to the dropdown. This will update the dropdown to contain all parameters of the selected clip (see Clip Param block). default
Copy link to clipboard
Copied
That worked! I never noticed that refresh icon on that block.
Thank you! Accomplished what I set out to.

