将 Flash/Actionscript 动画导出为 PNG 并转换数据?
我们现在正在开发一个项目,我们的动画师正在 Flash(他最熟悉的工具)中创建动画,我们需要将其导出到我们的应用程序中。他使用单独的精灵(对于一个人,我们会使用眼睛、嘴巴、头发、脚等)并适当地变换它们。因此,如果他的头部前后摇晃,一帧可能是正常的,一帧可能旋转 20°,另一帧可能旋转 20°,另一帧可能旋转 -20°,依此类推。
我们需要的是导出动画中使用的所有精灵,以及每个帧中每个对象的变换数据。
不幸的是,动画是在 Actionscript 中完成的,这使事情变得有些复杂,并且因为我们使用的是在多个位置使用的精灵组件,所以我们希望单独导出动画的每个组件。
只要我们能够将其转换为某种更容易解析的格式,就应该没问题,但从技术意义上来说,我们对 Flash 还不够熟悉,不知道从哪里开始寻找。 Python 中的解决方案是首选,因为这是我们工作所使用的语言。
We're working on a project right now where our animator is creating animations in Flash (the tool in which he's most comfortable) which we need to export for our application. He's using separate sprites (for a person, we'd use eyes, mouth, hair, feet, etc.) and transforming them appropriately. So, if his head is rocking back and forth, one frame might be normal, one might be rotated 20°, another normal, and another -20°, and so on.
What we need is to export all of the sprites used in the animation, along with the transform data for each object in each frame.
Unfortunately, the animation is being done in Actionscript, which complicates things somewhat, and because we're using sprite components that we use in multiple places, we want each component of the animation exported separately.
As long as we can get it into some kind of more easily parse-able format, we should be fine, but we're not familiar enough with Flash, in a technical sense, to know where to start looking. Solutions in Python would be preferred, since that's the language we're all working in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第一个噩梦是嵌套符号。使用 onEnterFrame 尝试一些基础知识,看看是否可以迭代(是否有一种机制来发现所有舞台成员)舞台上的符号/精灵并获取它们的属性。
The first nightmare would be nested symbols. Try some basics using onEnterFrame and see if you can iterate (is there a mechanism to discover all the stage members) the symbols/sprites on the stage and get their properties.