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

how can I pre-compose layers via AEGP?

New Here ,
Jun 14, 2007 Jun 14, 2007

Copy link to clipboard

Copied

Hello,

I would like my AEGP to put some of the layers of the active composition into a pre-composition. Well, the far way I can think of would be to create a new composition, add it to the existing composition, add the footage items of all layers I want to have in my nested comp in there and copy every one of the god knows how many streams, flags and effects to the layers inside the comp.

My question: isn't there an easier way to create nested compositions or at least copy layers with all their effects and so on to another place inside my project?
TOPICS
SDK

Views

2.4K

Translate

Translate

Report

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 ,
Jun 22, 2007 Jun 22, 2007

Copy link to clipboard

Copied

You could set the current selection to the comps & layers to be pre-comped, then use AEGP_DoCommand (2071). 2071 == pre-compose.

Votes

Translate

Translate

Report

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 ,
Jun 22, 2007 Jun 22, 2007

Copy link to clipboard

Copied

Oh yeah...set the selection using AEGP_CollectionSuite.

Votes

Translate

Translate

Report

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 ,
Jul 24, 2007 Jul 24, 2007

Copy link to clipboard

Copied

How do I use these Collections?

I build a new collection, I build a collection item, I set item.u.layer.layerH at a layer I want to select and do collectionPushBack, then doCommand and after that disposeCollection. Nothing happens, and I don't even see how to tell the command which layer(s) it is referring to. Help!

Votes

Translate

Translate

Report

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 ,
Aug 01, 2007 Aug 01, 2007

Copy link to clipboard

Copied

Call AEGP_SetSelection() to alert AE of the change.

Votes

Translate

Translate

Report

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 ,
Aug 08, 2007 Aug 08, 2007

Copy link to clipboard

Copied

LATEST
Thank you. But still, nothing works. I have no idea why.
I try to open a pre-composition I have just built and added to my main composition.
===============================================================
Here's my source code:

AEGP_Collection2H collection = NULL;
AEGP_CollectionItemV2 coll_item;
coll_item.u.layer.layerH = temp_layerH;
ERR(suites.CollectionSuite2()->AEGP_NewCollection(globP->my_id, &collection));
ERR(suites.CollectionSuite2()->AEGP_CollectionPushBack(collection, &coll_item));
ERR(suites.CompSuite5()->AEGP_SetSelection(main_compH, collection));
ERR(suites.CommandSuite1()->AEGP_DoCommand(3061)); //3061 = open selection
ERR(suites.CollectionSuite2()->AEGP_DisposeCollection(collection));
=============================================================

Where am I wrong? When I debug, every single line of code is done, but nothing seems to happen.

Votes

Translate

Translate

Report

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