Copy link to clipboard
Copied
Does anyone know if it's possible to pass settings as well?
Whatever the last setting was used on Media Encoder is the setting it will use.
Otherwise this feature is brilliant.
1 Correct answer
Nope, unfortunately this isn't possible.
Copy link to clipboard
Copied
Nope, unfortunately this isn't possible.
Copy link to clipboard
Copied
Not the answer I was hoping for.
Cheers. At least I can think of other ways to achieve this, hoping there was going that was going to be my easy solution.
Copy link to clipboard
Copied
Hey Tomas
I came across this plugin and I'm assuming he's not using the above script, but how is he transferring from AE to AME and applying the epr, in his script.
If you can point me in the right direction I can work it out on my own, just seem daft that there isn't much in documentation on it.
Copy link to clipboard
Copied
Dev of this tool is here. Let's ask him. Justin Taylor?
Copy link to clipboard
Copied
Hey Scott,
Yea, Pro IO uses BridgeTalk and queues up comps through AME directly, not through the AE Render queue, as those options are limited. While there's no official documentation for scripting in AME, I added all my findings through research to the AME Docs Here.​
Basically, set up a BridgeTalk message from AE to AME, then add the project to the render queue with app.getFrontEnd().addCompToBatch(file, preset, destination)​ (Note the required project structure for this method to work as outlined in the docs.)
Copy link to clipboard
Copied
Oh wow.
Sorry Justin, thank you soo much for the info. I'm sorry as I feel cheeky that I'm trying to figure a way around not having to buy plugins (Not knowing you dev'd it and my company refusing to buy me helpful resources. This is what spurs me to build these things).
Project you helped me out with is nearly completed and colleagues lives are much easier, but one site needs a different format. So thank for sharing the wisdom. This helps a lot.
Copy link to clipboard
Copied
Haha, all good, if you can build it you're entitled to use it. Always happy to help!
Copy link to clipboard
Copied
Hey Justin,
I think I'm confusing myself as there isn't much in the way of examples. So pulling a few things together this works to launch a message. ONLY if AME is open (I'll figure that one out, but...)
This Works
var w = new Window ("palette", "TEST", undefined, {resizable:true} );
buttonOne = w.add ("button",undefined,"Default");
buttonOne.onClick = function(){
var bt = new BridgeTalk();
bt.target = "ame";
var message = "alert('Hello')";
bt.body = message;
bt.send();
}
w.show();
So following this and following the links you've sent. I attempted this.
var bt = new BridgeTalk();
bt.target = "ame";
var fend = app.getFrontend();
var cmp = "/Users/scott/Desktop/TESTING/Testable.aep";
var pst = "/Users/scott/Desktop/TESTING/TESTPreset.epr";
var out = "/Users/scott/Desktop/TESTING";
var message = fend.addCompToBatch(cmp,pst,out);
bt.body = message;
bt.send();
But I get nothing.
So that's the first part. Now the second thing is once the first part is working, how do you get it around something like Comp(2), as my project will always be the 2nd comp in the panel. I ask because of this Note.
Note: Method requires project to be structured so that 1 and only 1 comp is at the root of the project. Application will throw an exception if no comp is present in the root or more than 1 comps are present.
I feel like I'm making a simple silly error somewhere, but can't see it based on what info I can find and the links you sent me.
Copy link to clipboard
Copied
Well I figured out the issue of launching ame.
I was missing
bt.appName = "ame";
So that's that problem fixed.
var bt = new BridgeTalk();
bt.appName = "ame";
bt.target = "ame";
var message = "alert('Hello')";
bt.body = message;
bt.send();
Copy link to clipboard
Copied
Ok turns out it was some writing quibbles causing my issue.
So this works but I'm getting an error back with the aep, but there's nothing wrong with my aep.
update code below.
var w = new Window ("palette", "TEST", undefined, {resizable:true} );
buttonOne = w.add ("button",undefined,"Default");
buttonOne.onClick = function(){
var bt = new BridgeTalk();
bt.appName = "ame";
bt.target = "ame";
bt.body = "app.getFrontend().addCompToBatch('/Users/scott/Desktop/Testable.aep','/Users/scott/Desktop/TESTING/TESTPreset.epr','/Users/scott/Desktop/TESTING')";
bt.send();
}
w.show();
Copy link to clipboard
Copied
Glad to see you're making good progress! Can you post a screenshot of your AEP project structure? Just want to make sure there is only one comp in the root directory.
Copy link to clipboard
Copied
Sorry Justin,
Turned out there was something wrong with my software (whether it was a plugin I've installed or made, or something else. That was conflicting with it). I did a full uninstall and reinstall. It's all working fine. So it wasn't me but the software itself.
So now I can have some fun with it.
I saw your post from a few years ago, is that how you are still doing exporting to make your comp the first comp?
Adding a second output in Extendscript for Media Encoder
I'm wondering when my script duplicates my comp, it puts it first by putting a character in the comp title to be the first instance.
My rendering script so I don't have messy comps opens up the project, duplicates the 000-Master Comp, updates all the stuff it needs to, then renders out, save it as a copy should I need it again as a backup and then launches the next one. Opening up the project...etc
Skipping the watch folder method now and using BridgeTalk(),
If I duplicate the comp so it puts itself as first comp and run BridgeTalk(), is that my best bet. Or is there a cleverer way than your post from 2 years ago.
I've tested with my way, just wondering if there's a tidier way than having it rename itself to make it the number one comp item.
Copy link to clipboard
Copied
That link you referenced is talking about multiple output modules for the same comp, while your description sounds like you want to queue up different comps.
Multiple Output Modules
As far as I know, this feature still has yet to be added to the API. Currently, if you want to export one comp in multiple formats, you need to create a new render item for each.
Multiple Comps from One Project
This is a limitation of addCompToBatch(), as it only allows one comp at a time, and you have to split off your project for rendering it that way. addDLToBatch() doesn't have this limitation, however, if you look at the docs, there are other drawbacks to this approach which is why I stick with addCompToBatch(). In Pro IO, I export to AEPX files so I can more rapidly rearrange comps in unique projcets and queue them up that way.
Copy link to clipboard
Copied
Hi Justin, thanks for all your help here!
Like Scott, I'm trying to send a file to render in AME with specific render settings. Using addCompToBatch() could work for what I'm doing but possibly addDLToBatch() would work better. The only thing is that I can't, for the life of me, figure out how to get the Dynamic Link GUID from the comp object. Do you know how I would go about getting that GUID?
Thank you so much,
Adam

