FaceReshapeRenderer
Represents a face reshape renderer that provides advanced facial reshaping capabilities.
| Type | Name | Interface Description |
|---|---|---|
| Variables | faceIndexes: number[] | • Function: Indexes of faces to apply reshaping to, using zero-based face slots. For example, |
| Functions | constructor() | |
| Functions | getFeatureNames(): string[] | • Function: Gets the list of face reshape feature names Returns Array of face reshape feature names |
| Functions | getFeatureWeight(feature: string | number): number | • Function: Gets the weight value of the face reshape feature with the specified name or index. Returns 0 if no corresponding organ slider is found or if the feature is out of bounds. Parameters • Returns The weight value of the face reshape feature |
| Functions | setFeatureWeight(feature: string | number, weight: number): void | • Function: Sets the weight value of the face reshape feature with the specified name or index. Clamps weight between 0 and 1. Updates both organ and boundary sliders if they exist. Parameters • • |
Examples
constructor()
let obj = new APJS.FaceReshapeRenderer();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use FaceReshapeRenderer here
}
onUpdate(deltaTime: number) {
}
}