I have a script that duplicates all page items from one document to another via: mySpread.pageItems.everyItem().move(myDestinationSpread); I'm forced to use "move" instead of "duplicate" for a variety of reasons I won't go into here. Anyway, it turns out that if there are any animations on the source spread, when they are moved to another spread in the same document, or a spread in a different document, the order of the animation in the timing panel is scrambled. This doesn't happen if the animation is moved to a different page in the same spread, only if it is moved to a different spread. I can't figure out what logic is being used to calculate the new order of the animation. It seems random. It isn't simply reversing the animation order, nor is it based on the stacking order of objects. Because of this, i've been trying to figure out a way to memorize the animation order on the original spread, and re-apply it on the destination spread, but I'm stumped. I've figured out that each row in the Timing Panel is a timingGroup, so mySpread.timingSettings.timingLists[0].timingGroups[4] addresses the 5th timing Group, for example. Also mySpread.timingSettings.timingLists[0].timingGroups[0].timingTargets[0].dynamicTarget addresses the individual text frame, rectangle, oval, etc. that is being animated. But for the life of me I can't figure out how to store all this, then move the objects to a new spread, and then re-apply it. Any pointers would be greatly appreciated!
... View more