MorphTargetChannel

MorphTargetChannel

Tổng quan

MorphTargetChannel là một lớp trong Aspose.3D FOSS cho Python. Kế thừa từ: A3DObject.

MorphTargetChannel.get_weight(target) trả về giá trị trọng số cho một morph target cụ thể.

Lớp này khai báo 9 phương thức cho các đối tượng MorphTargetChannel trong các chương trình Python. Các phương thức có sẵn bao gồm: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. Tất cả các thành viên công cộng đều có thể truy cập bởi bất kỳ ứng dụng Python nào sau khi cài đặt gói Aspose.3D FOSS cho Python. Thuộc tính: channel_weight, name, properties, targets, weights.

Thuộc tính

TênKiểuTruy cậpMô tả
weights'list[float]'ĐọcLấy các trọng số.
channel_weightfloatĐọc/GhiLấy hoặc đặt trọng lượng kênh.
targets'list[Shape]'ĐọcLấy các mục tiêu.
namestrĐọc/GhiLấy hoặc đặt tên.
propertiesPropertyCollectionĐọcLấy các thuộc tính.

Phương thức

Chữ kýMô tả
__init__(name: str)Calls init(name) trên phiên bản MorphTargetChannel này.
get_weight(target: 'Shape') → floatTrả về trọng lượng hiện tại cho mục tiêu morph được chỉ định, và set_weight(target, weight) cập nhật nó.
set_weight(target: 'Shape', weight: float)Đặt giá trị trọng số.
get_weight(index: int) → floatGọi get_weight(index) trên thể hiện MorphTargetChannel này.
set_weight(index: int, weight: float)Đặt giá trị trọng số.
find_property(property_name: str)Gọi find_property(property_name) trên thể hiện MorphTargetChannel này.
get_property(property: str)Gọi get_property(property) trên thể hiện MorphTargetChannel này.
set_property(property: str, value)Đặt giá trị thuộc tính.
remove_property(property)Gọi remove_property(property) trên đối tượng MorphTargetChannel này.

Xem thêm

 Tiếng Việt