MorphTargetChannel
Panoramica
MorphTargetChannel è una classe in Aspose.3D FOSS per Python. Eredita da: A3DObject.
MorphTargetChannel.get_weight(target) restituisce il valore di peso per un target morph specifico.
Questa classe dichiara 9 metodi per oggetti MorphTargetChannel in programmi Python. I metodi disponibili includono: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo aver installato il pacchetto Aspose.3D FOSS per Python. Proprietà: channel_weight, name, properties, targets, weights.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
weights | 'list[float]' | Lettura | Ottiene i pesi. |
channel_weight | float | Lettura/Scrittura | Ottiene o imposta il peso del canale. |
targets | 'list[Shape]' | Lettura | Ottiene i target. |
name | str | Lettura/Scrittura | Ottiene o imposta il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
__init__(name: str) | Calls init(name) su questa istanza MorphTargetChannel. |
get_weight(target: 'Shape') → float | Restituisce il peso corrente per il target morph specificato, e set_weight(target, weight) lo aggiorna. |
set_weight(target: 'Shape', weight: float) | Imposta il valore del peso. |
get_weight(index: int) → float | Chiama get_weight(index) su questa istanza di MorphTargetChannel. |
set_weight(index: int, weight: float) | Imposta il valore del peso. |
find_property(property_name: str) | Chiama find_property(property_name) su questa istanza di MorphTargetChannel. |
get_property(property: str) | Chiama get_property(property) su questa istanza di MorphTargetChannel. |
set_property(property: str, value) | Imposta il valore della proprietà. |
remove_property(property) | Chiama remove_property(property) su questa istanza MorphTargetChannel. |