使用 JSFL 将影片剪辑移动到独特的图层
我有一个资产文件 (FLA),在项目期间其他团队成员将对其进行大量更新。我想要一个 JSFL 脚本,将时间轴中所有选定的影片剪辑移动到新层(使用影片剪辑库名称命名)。
- 第0层
- 实例88(测试1)
- 实例89(测试2)
... 将变成 ...
- test1
- 实例88
- 测试2
- 实例89
有什么建议吗?
I have an asset file (FLA) that will be updated a lot by other team members during the project. I would like to have an JSFL script that moves all selected movieclips in the timeline to a new layer (named using the movieclips library name).
- Layer 0
- instance88 (test1)
- instance89 (test2)
... will become ...
- test1
- instance88
- test2
- instance89
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果命名 test1 和 test2 实例,则可以右键单击它们并从上下文菜单中选择分发到图层,这会将影片剪辑放置在以其实例名称命名的单独图层上。
您可以编写一个 jsfl 脚本,但您的要求看起来有点宽松。符号名称可能会改变,可能有超过 2 个具有此行为的符号,等等。
在这一点上,麻烦可能大于其价值。
就个人而言,我会使用设计器资源作为 MovieClip 中的命名实例,并勾选导出为 Actionscript 选项,将所有资源编译到单个 SWC 中。这样,您可以简单地通过链接的 SWC 中的实例名称访问资源,并通过组合(或继承,具体取决于最佳选择)使用它们适合您)在您的 ActionScript 项目中。
华泰
If you name the test1 and test2 instances, you can right click them and select Distribute To Layers from the context menu, which should place the movieclips on separate layers, named after their instance names.
You could write a jsfl script, but you're requirements look a bit loose. The symbols names might change, could be more than 2 symbols with this behaviour, etc.
At this point it might be more than trouble than it's worth.
Personally, I would use designer assets as named instances in a MovieClip with the Export for Actionscript option ticked all compiled into a single SWC. This way, you can simply access the assets by instance names from the linked SWC and use them via composition (or inheritance, depending on what's best suited for you) in your actionscript projects.
HTH