How to "adjust automatically to the comp' any imported file?

Hello everyone

I use a plugin to dynamically import video files in some comps I have configured previously.

All these compositions are 1280 x 720 and this plugin, when triggered, essentially takes hundreds of videos I have in a specific folder on my PC and products are imported into AE and puts each of them in each model.

For my job, I sell hundreds of videos annually during the tests (all videos have the same structure). That's why I use this script which automates my work and automatically changes each video.

THE PROBLEM

The video files are not the same resolution. Some are 1280 x 720, others are 1920 x 1080.

The plugin simply products are imported and puts them in the computer, which means that 1920 x 1080 files will not be optimized.

As you can imagine, I can't open each model and do a right-click on the video and click on 'fit to the model' because, having hundreds of comps, every time, it would be a huge waste of time, and it would be pointless to use a script.

THE SOLUTIONS THAT I THOUGHT

(1) is it possible to say AE to automatically adapt to any video imported into a model? (something like "default to the size of the image scale" of the ORGANIZATION)

(2) If 1 is not possible, I came with a weird, but maybe the solution to work. In each computer, I put an object null for an expression that changes the scale of the imported video. Therefore, when the video is imported, the expression of the NULL object handles to resize the imported video. The question is: How can I know that the expression to change the scale of a video not yet imported (I already have the code of the expression, found somewhere were the web... I just need to tell the null object to apply the term to a video file that is not yet imported)?

Thanks for the support!

Expressions don't work that way. They cannot change anything, except the value of the property hosting the expression. You might have the term scaling applied to a placeholder layer, but you would have to modify the script to a replaceSource() with the new images. Or you can modify the script to apply the term directly to the scale property of the new layer of sequences. Whatever it is, you need to change your script.

Dan

Tags: After Effects

Similar Questions

Maybe you are looking for

  • Satellite M60-170: Express media player does not load

    Hello I guess I have a problem with the express media player on my satellite m60-170.I have inserted an audio disc or a dvd and the laptop does not work.When I press the cd/dvd button, instead of 'Act' as it should, it just support windows (such as p

  • best settings for shooting outdoors? Canon rebel eos t3i

    my brother is getting married this Saturday the 15, it'll be a wedding in the open air at 4 pm Pacific time. The weather is sunny highs of 74 depressions 55 with a chance of flurries. What are the best GENERAL setting to record the ceremony? I am a n

  • Listen to songs only 50

    Hey guys,. I just bought the "rocket" and I already have problems. I downloaded 75 songs, just as I said, drag and drop, but only 50 of them play. Theyre the same format and all came to the same site. What continues?

  • 0x00729c98 on the HP Deskjet 3050 all-in-One error code

    I just got my Deskjet 3050 last summer, and now it gives me this error code (0x00729c98) whenever I turn it on. Turn onto the property and made a few noises whirring as it adapts, so the two ink cartridge brand orange flash as the exclamation mark ne

  • Paint Bucket size

    How can I change the size of the paint bucket tool in Adobe Photoshop Elements 2.0?