Skip to main content
Known Participant
January 13, 2022
Question

Traverse composition, layers. getting information

  • January 13, 2022
  • 1 reply
  • 1101 views

Hi, friends from the Adobe community team and forums. I ran into several problems.

 

1. How to loop through all compositions, layers. The purpose is to get the plugin effect already applied on the layer? Can you give some sample code? It might take you a few minutes but it's like giving me a helping hand.

 

2. How to use DynamicStreamSuite to read and write the parameter string of the plugin according to the effect applied on the layer. (those strings were added using PF_ADD_BUTTON(...)). Because I want to decide the displayed name according to the different actions of the user. It would be nice to have sample code.

 

please.Looking forward to your reply.

This topic has been closed for replies.

1 reply

Community Expert
January 13, 2022

take a look at the "ProjDumper" sample project. it does exactly that.

Known Participant
January 13, 2022

Omg I didn't notice such a good example! !
1. So how to modify the text displayed by the parameter? I really want to know. Not in this project. I need a little more time to read this. But I just experienced it, a lot of information is recorded in the .txt generated by the plugin.
2. Also, can .aep files be parsed? Parse into .XML and then parse .XML into .aep . Are there sample projects as well?
3. There is also when a project opens a lower version or a higher version. AE will show which version was created. How does ae determine which version it is? Show that this information is recorded in the .aep file.
Looking forward to your reply.

Community Expert
January 13, 2022

1. AEGP_SetStreamName.

2. there's no API for parsing aep files directly. the AE API only deals with quering the currently open project. i guess xml files should be easy to parse with some trial and error. (except for custom data blocks)
3. that data is stored in the aep file, but as mentioned in clause 2, there's no API for parsing a file, and once AE opened a file there's no trace of which AE version that data originated from.