MorphTargetChannel
Przegląd
MorphTargetChannel jest klasą w Aspose.3D FOSS dla Python. Dziedziczy po: A3DObject.
MorphTargetChannel.get_weight(target) zwraca wartość wagi dla konkretnego celu morph.
Ta klasa deklaruje 9 metod dla obiektów MorphTargetChannel w programach Python. Dostępne metody to: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. Wszystkie publiczne elementy są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python. Właściwości: channel_weight, name, properties, targets, weights.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
weights | 'list[float]' | Odczyt | Pobiera wagi. |
channel_weight | float | Odczyt/zapis | Pobiera lub ustawia wagę kanału. |
targets | 'list[Shape]' | Odczyt | Zwraca cele. |
name | str | Odczyt/zapis | Pobiera lub ustawia nazwę. |
properties | PropertyCollection | Odczyt | Pobiera właściwości. |
Metody
| Sygnatura | Opis |
|---|---|
__init__(name: str) | Calls init(name) na tej instancji MorphTargetChannel. |
get_weight(target: 'Shape') → float | Zwraca bieżącą wagę określonego celu morph, a set_weight(target, weight) ją aktualizuje. |
set_weight(target: 'Shape', weight: float) | Ustawia wartość wagi. |
get_weight(index: int) → float | Wywołuje get_weight(index) na tej instancji MorphTargetChannel. |
set_weight(index: int, weight: float) | Ustawia wartość wagi. |
find_property(property_name: str) | Wywołuje find_property(property_name) na tej instancji MorphTargetChannel. |
get_property(property: str) | Wywołuje get_property(property) na tej instancji MorphTargetChannel. |
set_property(property: str, value) | Ustawia wartość właściwości. |
remove_property(property) | Wywołuje remove_property(property) na tej instancji MorphTargetChannel. |