ACC(3VRM)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars (tools/make-vrm.py, Python)ACC(3VRM)

NAME

acc — append an array and its accessor

SYNOPSIS

g.acc(arr, ctype, typ, target=None, minmax=False)

PARAMETERS

arr: a NumPy array. ctype: 5121 (unsigned byte), 5125 (unsigned int) or 5126 (float). typ: "SCALAR", "VEC3", "VEC4" or "MAT4". target: as for view(). minmax: True to write the bounds, which glTF requires for positions and morph-target positions.

RETURN VALUE

The accessor's index.

SEE ALSO

view(3vrm), add_meshes(3vrm)

SOURCE

tools/make-vrm.py, line 435

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0