blender/tests/files/alembic/attributes-export-random-test.blend
Kévin Dietrich 19f60a40ff Alembic: export arbitrary attributes
This adds support to export arbitrary attributes to Alembic, for
meshes, curves, and pointclouds.

All attribute types are exported except `float4` which is not supported
by Alembic. See code comments for potential solutions if this becomes a
problem in the future.

For the actual export, a single function is exposed to create a
`TypedGeomParam` for each attribute. To keep track of those
`TypedGeomParams` across frames, a class `AttributeParamMaps` is added.
This class holds a map for each type from attribute name to geom param.
An instance of this class is added to each object type writer and is
lazily created when exporting attributes. This class generalizes what
we have currently in `CDStreamConfig` for UVs, vertex colors, and
orcos.

Export of vertex colors is now done with this new mechanism. UVs are
not exported by this new code as they have the option to be
deduplicated and indexed, which is not supported for other attribute
types. Support for this for all attributes could be added in the future
though.

Finally, attributes consisting of a single value are exported as such
on the constant scope.

Fixes #157620
Resolves #99293

Pull Request: https://projects.blender.org/blender/blender/pulls/163162
2026-09-16 10:18:53 +02:00

3 lines
131 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:82c4b97399f11581366499a2cc99f8fe3c3ff12775155e2d76c01e019a178f2a
size 183525