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

Can I Enable Dynamic Link after importing After Effects comp?

New Here ,
Nov 06, 2018 Nov 06, 2018

I am developing a POC for a HTML panel that controls After Effects from within Premiere Pro. It is made for editors and people who are somewhat familiar with PPro but not with AE.

I wrote some code that imports an AE comp into PPro, that must have the possibility to be altered after importing. I know this works with comps that are manually imported with "dynamic link".

I am able to control the AE items from within PPro using BridgeTalk, so making these changes is not the problem.

I found this function "app.project.importAEComps(pathOfContainingProject, arrayOfCompNames)" that imports an AE comp, (from PPro2018 onward) but this imported item is not dynamically linked to AE. I need to do a manual operation, such as "edit original". I'd love to do this from within the automation.

Without dynamic link, the changes made in AE are not visible in PPro, not even after saving the AE project and re-importing the comp. There seems to be some caching involved. I need to restart PPro entirely for the changes to become visible..

importAEcomp = function(pathName, compName)

{ //This function runs in the PPro jsx environment

     var prj = app.project;

     prj.importAEComps(pathName, [compName]);

     var impItem = undefined;

     for(var t=0;t<prj.rootItem.children.numItems;t++) {

          var projItem = prj.rootItem.children;

          if(projItem) {

               var index = projItem.name.indexOf('/'); //Use the comp name part

               if(index>0) { //Search the item with our comp name

                    if(projItem.name.substr(0,index)===compName) {

                         impItem = projItem; //Found!

                         break;

                    }

               }

          }

     }

     if(impItem) {

       // impItem.refreshMedia(); //Does this activate the dynamic link? Nope!

          var seq = app.project.activeSequence;

          var vItems = seq.videoTracks.numTracks;

          if(vItems>1) { //We need at least 2 video tracks. Add our comp to the topmost video layer

               var vTrack = seq.videoTracks[vItems-1];

               if(vTrack) {

                    vTrack.insertClip(impItem,0); //Add the item to topmost layer

               }

          }

     }

}

Chris

TOPICS
SDK
1.7K
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

Adobe Employee , Nov 07, 2018 Nov 07, 2018

Circling back to the original question: There's no API about connecting Dynamic Link, but if the same comp from the same project is open in both apps, I think Dynamic Link will happen.

Translate
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018

If you save the changed .aep in AE, then in PPro call projectItem.refreshMedia() on the projectItem representing an AE comp in that .aep, does it get updated with your changes?

Refresh media: https://github.com/Adobe-CEP/Samples/blob/ed4d4656611780a0dafd98d16fac1d06ad27d8cb/PProPanel/jsx/PPR...

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 08, 2018 Nov 08, 2018

I checked this now.

Indeed, I had to re-save the AE project before doing the importAEComps()

Then the dynamic link was established after the RefreshMedia() command.

Many thanks for the help.

Chris

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 09, 2018 Nov 09, 2018
LATEST

Can u say for me, as i don`t know English well, pls

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 06, 2018 Nov 06, 2018

Where i can put my question???

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
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018

What question is that?

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 06, 2018 Nov 06, 2018

I asked how i can create title where i will ask about my problem. But the problem is that when i SHIFT + B(older versions)(new >> Episod >> render) or in the last Exporting video when all is completed.After that i look at video and see green, purple and ping flickers, all video. And in video any 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
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018

That sounds like several distinct issues.
Do any of them have to do with Premiere Pro's APIs?

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 06, 2018 Nov 06, 2018

Sorry, what is API`s i don`t know

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
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018

This is the SDK forum, primarily for questions about development using Premiere Pro's APIs.

I suggest untangling the multiple issues you've mentioned above, and searching for help with them on the general Premiere Pro forums.

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 06, 2018 Nov 06, 2018

I am trying to find it all day. Can i contact with? I want to sent you photo of problem u will see. I don`t know what to do.

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
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018

You're in a SUB-forum, of the main Premiere Pro forum.

Perhaps Adobe Support can help you, if you can send them a screenshot?

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 06, 2018 Nov 06, 2018

How to do 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
Adobe Employee ,
Nov 06, 2018 Nov 06, 2018
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
Adobe Employee ,
Nov 07, 2018 Nov 07, 2018

Circling back to the original question: There's no API about connecting Dynamic Link, but if the same comp from the same project is open in both apps, I think Dynamic Link will happen.

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