MorphTargetChannel
Gambaran Umum
MorphTargetChannel adalah kelas dalam Aspose.3D FOSS untuk Python. Mewarisi dari: A3DObject.
MorphTargetChannel.get_weight(target) mengembalikan nilai berat untuk target morph tertentu.
Kelas ini mendeklarasikan 9 metode untuk objek MorphTargetChannel dalam program Python. Metode yang tersedia meliputi: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. Semua anggota publik dapat diakses oleh aplikasi Python mana pun setelah memasang paket Aspose.3D FOSS untuk Python. Properti: channel_weight, name, properties, targets, weights.
Properti
| Nama | Jenis | Akses | Deskripsi |
|---|---|---|---|
weights | 'list[float]' | Baca | Mendapatkan bobot. |
channel_weight | float | Baca/Tulis | Mendapatkan atau mengatur bobot saluran. |
targets | 'list[Shape]' | Baca | Mendapatkan target. |
name | str | Baca/Tulis | Mendapatkan atau mengatur nama. |
properties | PropertyCollection | Baca | Mendapatkan properti. |
Metode
| Tanda Tangan | Deskripsi |
|---|---|
__init__(name: str) | Calls init(name) pada instance MorphTargetChannel ini. |
get_weight(target: 'Shape') → float | Mengembalikan berat saat ini untuk target morph yang ditentukan, dan set_weight(target, weight) memperbaruinya. |
set_weight(target: 'Shape', weight: float) | Mengatur nilai bobot. |
get_weight(index: int) → float | Memanggil get_weight(index) pada instance MorphTargetChannel ini. |
set_weight(index: int, weight: float) | Mengatur nilai bobot. |
find_property(property_name: str) | Memanggil find_property(property_name) pada instance MorphTargetChannel ini. |
get_property(property: str) | Memanggil get_property(property) pada instance MorphTargetChannel ini. |
set_property(property: str, value) | Mengatur nilai properti. |
remove_property(property) | Memanggil remove_property(property) pada instance MorphTargetChannel ini. |