MorphTargetChannel
概述
MorphTargetChannel 是 Aspose.3D FOSS 中用于 Python 的类。继承自:A3DObject。
MorphTargetChannel.get_weight(target) 返回特定形变目标的权重值。
此类为 Python 程序中的 MorphTargetChannel 对象声明了 9 个方法。可用的方法包括:__init__、find_property、get_property、get_weight、remove_property、set_property、set_weight。在安装了 Aspose.3D FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:channel_weight、name、properties、targets、weights。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
weights | 'list[float]' | 读取 | 获取权重。 |
channel_weight | float | 读写 | 获取或设置通道权重。 |
targets | 'list[Shape]' | 读取 | 获取目标。 |
name | str | 读写 | 获取或设置名称。 |
properties | PropertyCollection | 读取 | 获取属性。 |
方法
| 签名 | 描述 |
|---|---|
__init__(name: str) | Calls init(name)在此 MorphTargetChannel 实例上。 |
get_weight(target: 'Shape') → float | 返回指定 morph target 的当前权重,并 set_weight(target, weight) 更新它 |
set_weight(target: 'Shape', weight: float) | 设置权重值。 |
get_weight(index: int) → float | 在此 MorphTargetChannel 实例上调用 get_weight(index)。 |
set_weight(index: int, weight: float) | 设置权重值。 |
find_property(property_name: str) | 在此 MorphTargetChannel 实例上调用 find_property(property_name)。 |
get_property(property: str) | 在此 MorphTargetChannel 实例上调用 get_property(property)。 |
set_property(property: str, value) | 设置属性值。 |
remove_property(property) | 在此 MorphTargetChannel 实例上调用 remove_property(property)。 |