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

app.project.renderQueue.queueInAME(true)

Participant ,
Jul 09, 2019 Jul 09, 2019

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.

TOPICS
Scripting
2.6K
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

correct answers 1 Correct answer

Advocate , Jul 09, 2019 Jul 09, 2019

Nope, unfortunately this isn't possible.

Translate
Advocate ,
Jul 09, 2019 Jul 09, 2019

Nope, unfortunately this isn't possible.

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
Participant ,
Jul 09, 2019 Jul 09, 2019

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.

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
Participant ,
Jul 09, 2019 Jul 09, 2019

Hey Tomas

https://aescripts.com/pro-io/

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.

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
Advocate ,
Jul 09, 2019 Jul 09, 2019

Dev of this tool is here. Let's ask him. Justin Taylor?

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 ,
Jul 09, 2019 Jul 09, 2019

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.)

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
Participant ,
Jul 10, 2019 Jul 10, 2019

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.

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 ,
Jul 10, 2019 Jul 10, 2019

Haha, all good, if you can build it you're entitled to use it. Always happy to help!

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
Participant ,
Jul 11, 2019 Jul 11, 2019

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.

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
Participant ,
Jul 11, 2019 Jul 11, 2019

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();

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
Participant ,
Jul 11, 2019 Jul 11, 2019

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.
Screenshot 2019-07-11 at 11.40.04.png

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();

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 ,
Jul 11, 2019 Jul 11, 2019

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.

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
Participant ,
Jul 11, 2019 Jul 11, 2019

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.

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 ,
Jul 11, 2019 Jul 11, 2019

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.

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
New Here ,
Nov 20, 2019 Nov 20, 2019
LATEST

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

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