AutoMovie API
    Preparing search index...

    Interface IAutoMovieModelPart

    One piece of a model: a chunk of geometry, the material on it, and how it attaches to the rig.

    A model is assembled from parts so a character can mix paths (a primitive torso here, an imported mesh head there) and so each surface can carry its own material. How a part follows the skeleton is captured by two mutually informing fields: a skinned part deforms via its mesh's IAutoMovieMeshSkin (attachedBone is null); a rigid part (a prop, a sword, a primitive limb) is parented wholesale to one bone via attachedBone and rides its transform.

    interface IAutoMovieModelPart {
        attachedBone: AutoMovieHumanoidBone | null;
        geometry: IAutoMovieGeometry;
        id: string;
        material: string | null;
        name: string | null;
        transform: IAutoMovieTransform | null;
    }
    Index
    attachedBone: AutoMovieHumanoidBone | null

    Bone for rigid parenting, or null for mesh skinning/static root geometry. If both this field and mesh skin are present, the current viewer chooses rigid attachment and ignores skin deformation; admission does not enforce mutual exclusion.

    This part's geometry: a primitive or a mesh.

    id: string

    Stable id within the model.

    material: string | null

    Id of the material applied to this part, into the owning model's materials. Null uses the renderer's default material.

    name: string | null

    Human / LLM readable label (e.g. "head", "left forearm"). Null if unnamed.

    transform: IAutoMovieTransform | null

    Local transform of the part relative to its attachment (bone or model root). null = identity.