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

Custom platform plugin development, can only access 1 timeline data

New Here ,
Feb 22, 2017 Feb 22, 2017

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.

115
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
no replies

Have something to add?

Join the conversation