MorphTargetChannel

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_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เรียก 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 นี้.

ดูเพิ่มเติม

 ภาษาไทย