MorphTargetChannel
ภาพรวม
MorphTargetChannel เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: A3DObject.
MorphTargetChannel.get_weight(target) คืนค่าค่า weight สำหรับ morph target เฉพาะ.
คลาสนี้ประกาศ 9 เมธอดสำหรับออบเจ็กต์ MorphTargetChannel ในโปรแกรม Python. เมธอดที่มี ได้แก่: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.3D FOSS สำหรับ 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 | เรียก get_weight(index) บนอินสแตนซ์ MorphTargetChannel นี้. |
set_weight(index: int, weight: float) | ตั้งค่าค่าน้ำหนัก. |
find_property(property_name: str) | เรียก find_property(property_name) บนอินสแตนซ์ MorphTargetChannel นี้. |
get_property(property: str) | เรียก get_property(property) บนอินสแตนซ์ MorphTargetChannel นี้. |
set_property(property: str, value) | ตั้งค่าค่าของคุณสมบัติ. |
remove_property(property) | เรียก remove_property(property) บนอินสแตนซ์ MorphTargetChannel นี้. |