工作动画 -- Python 的 Aspose.3D FOSS
提供了与动画工作的类.
概述
关键类别是:
AnimationChannelAnimationClipAnimationNode
开始的
安装 Aspose.3D FOSS 为 Python:
pip install aspose-3d-foss基本使用方式
from aspose.threed.animation import AnimationChannel, Interpolation
channel = AnimationChannel("Rotation.X")
channel.add(0.0, 0.0, Interpolation.LINEAR)
channel.add(1.0, 90.0, Interpolation.LINEAR)
channel.add(2.0, 0.0, Interpolation.LINEAR)
print(f"Channel '{channel.name}' has {len(channel.key_frames)} keyframe(s)")提示和最佳实践
- 使用后始终丢弃文档物品.
- 在阅读或写入文件时处理文件I/O例外情况.
- 检查该 API参考 对于最新签名的情况:
API 参考概述
| Class | 描述情况 |
|---|---|
AnimationChannel | 查看参考文档 |
AnimationClip | 查看参考文档 |
AnimationNode | 查看参考文档 |
详细信息请参见"欧盟经济合作伙伴关系委员会". API参考.