MorphTargetChannel
Visão geral
MorphTargetChannel é uma classe em Aspose.3D FOSS para Python. Herda de: A3DObject.
MorphTargetChannel.get_weight(target) retorna o valor de peso para um alvo morph específico.
Esta classe declara 9 métodos para objetos MorphTargetChannel em programas Python. Os métodos disponíveis incluem: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. Todos os membros públicos são acessíveis a qualquer aplicação Python após a instalação do pacote Aspose.3D FOSS para Python. Propriedades: channel_weight, name, properties, targets, weights.
Propriedades
| Nome | Tipo | Acesso | Descrição |
|---|---|---|---|
weights | 'list[float]' | Leitura | Obtém os pesos. |
channel_weight | float | Leitura/Escrita | Obtém ou define o peso do canal. |
targets | 'list[Shape]' | Leitura | Obtém os alvos. |
name | str | Leitura/Escrita | Obtém ou define o nome. |
properties | PropertyCollection | Leitura | Obtém as propriedades. |
Métodos
| Assinatura | Descrição |
|---|---|
__init__(name: str) | Calls init(name) nesta instância de MorphTargetChannel. |
get_weight(target: 'Shape') → float | Retorna o peso atual para o alvo de morph especificado, e set_weight(target, weight) o atualiza |
set_weight(target: 'Shape', weight: float) | Define o valor do peso. |
get_weight(index: int) → float | Chama get_weight(index) nesta instância de MorphTargetChannel. |
set_weight(index: int, weight: float) | Define o valor do peso. |
find_property(property_name: str) | Chama find_property(property_name) nesta instância de MorphTargetChannel. |
get_property(property: str) | Chama get_property(property) nesta instância de MorphTargetChannel. |
set_property(property: str, value) | Define o valor da propriedade. |
remove_property(property) | Chama remove_property(property) nesta instância de MorphTargetChannel. |