MorphTargetChannel

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_weightfloat读写获取或设置通道权重。
targets'list[Shape]'读取获取目标。
namestr读写获取或设置名称。
propertiesPropertyCollection读取获取属性。

方法

签名描述
__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)。

另请参阅

 中文