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

Automation Blocks - Set Attribute (source item)

Contributor ,
Dec 16, 2024 Dec 16, 2024

I'm creating a script that replaces footage with other footage and have encountered what I'm hoping is a "my problem" and not a bug.

 

I've a template project that has actual footage in it that is the used in varous places in the project.

FinalsTemplateElements.pngexpand image

And this works sucessfully with the following blocks

FinalsScript.pngexpand image

The 2048x1080 footage (source item) get replaced as expected.

 

However, when I tried to simplify things and reduce my template comp by using "Placeholders" or "Solids" in the project window of a different template file.

PreTemplateElements.pngexpand image

Using the following script block...

PreScript.pngexpand image

 

I get the following error message.

CantConvert.pngexpand image

 

Am I stuck with using actual footage to make these templates work? I only ask cause I have to have template footage that can be somewhat large on occasion rather than using internal Solids or Placeholders.

 

Thanks as always.

TOPICS
Error or problem , Scripting
200
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
Community Expert ,
Dec 16, 2024 Dec 16, 2024

You loop over "Bottom Layer to replace", but try to set the source of "Middle Layer to Replace". Is this really what you want?

Also, I am not sure why you work with lists here.

The "Set Attribute source item of layer(s)" block can either take a single layer and a single project item as arguments, or a list of layers and a list of project items. The latter case if for setting multiple layer sources in a single call. However, in that case, both lists must have the same length (like setting the project items of 10 layers needs 10 layers and 10 new project items). The error message "cannot convert this to a layer" suggests that you may have lists of different length or that the list contains entries which are no layers.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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
Contributor ,
Dec 17, 2024 Dec 17, 2024

I only do the 'loop' because I sometimes replace the footage in multiple comps thruout the project.

LoopReplace.pngexpand image

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
Contributor ,
Dec 17, 2024 Dec 17, 2024
LATEST

...aaaand I figured out "my" problem. I wasn't replacing the right things with the correct things.

 

In my original post I was replacing Bottom Layers with Middle Layers.

 

Doh!

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