Copy link to clipboard
Copied
I am developing a Custom platform plugin following the sample at Enabling custom platform support using the Animate custom platform SDK
The sample works with only one timeline but provides instrucions in the code on how to extend it to support more:
/*
* IMPORTANT NOTE:
*
* For the current sample plugin, multiple scene export is not supported.
* Supporting export of multiple scene is little tricky. This is due to
* the fact that IFrameCommandGenerator::GenerateFrameCommands() expects
* that a new empty resource palette is passed for each timeline.
*
* In other words, for each timeline (scene), a resource palette is exported.
* So, if a resource is present in 2 scenes, its definition will be replicated
* in both the resource palettes. Plugin can choose to optimize by comparing the
* resource names to find the common resources and put it in a global resource
* palette and also modifying the timeline builder commands to use the new
* resource ids.
*
* For our current implementation, we chosen to keep it simple and not support
* multiple scenes. For this plugin to work, the feature "Scene" must be disabled
* by the corresponding DocType.
*/
From this I understand that enabling the Scene property for my plugin should be enough of a start for me to at least get the number of timelines in the document. However, after enabling the property, calling GetTimelines on the document always returns only 1 timeline no matter how many there actually are.
Is there something more I need to do in order to access the data of all timelines? Is this some known issue?
Thanks in advance.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now