python - 编写/解析 Apple Motion 5 .motn 文件

标签 python animation xml-parsing finalcut

<分区>

我是动画新手,我已经开始使用 Apple Motion 5

http://www.apple.com/au/final-cut-pro/motion/

界面可能有点烦人,因为它不允许我批量处理或自动执行操作。因为它以很好的 xml 格式保存文件,所以我一直在破解它来做我喜欢的事情。

例如,如果不手动执行每一项,则无法在应用程序中为数百种 Assets 设置“固定分辨率”关闭,因此我编写了一个简短的脚本来查找并将文件设置值中的这一行替换为 0

<parameter name="Fixed Resolution" id="113" flags="8606711808" default="1" value="0"/>

是否有任何 python 库可以解析/编写 .motn 文件? (通用 xml 解析器除外)

最佳答案

Try Awesome Python at https://github.com/vinta/awesome-python

Maybe you'll find there what you're looking for.

But if you really want to use cool app try The Foundry Nuke or Blackmagic Fusion instead of Apple Motion or Adobe After Effects. Nuke and Fusion are node-based flexible and powerful compositing applications that support python scripting and programming. There are non-commercial free versions:

https://www.thefoundry.co.uk/products/nuke/

https://www.blackmagicdesign.com/products/fusion

希望这对您有所帮助。

关于python - 编写/解析 Apple Motion 5 .motn 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39760227/

相关文章:

c# - 检测 XML 的更好方法?

java - 基于 xml 标签对值进行分组

python - 使用 Mongoengine 按 id 删除 ListField 项

python - Scikit-learn 逻辑回归的性能比用 Python 自行编写的逻辑回归要差

html - 如何仅使用 CSS 为 div 制作动画?

android - 在 Android 的 RecyclerView 中检测动画完成

python - 使用 python requests 包格式化 JSON 以用于 post 命令...?URL 中的 jsonRequest 参数

python - 如何在图像中找到签名?

xcode - iPhone 的 UIBUtton 标题动画

c# - 使用 Regex 或 XmlParser 替换标签中未包含的文本