createAttributeMetadata#

omni::graph::core::AttributeDataHandle createAttributeMetadata(
omni::graph::core::NameToken attribute,
omni::graph::core::NameToken fieldName,
omni::graph::core::Type const &fieldType,
size_t elementCount = 0,
) noexcept#

Create attribute metadata field.

Parameters:
  • attribute – Name of the attribute.

  • fieldName – Name of new attribute metadata field.

  • fieldType – Type of new attribute metadata field.

  • elementCount – Number of elements in the array.

Returns:

Handle to the newly created attribute metadata field.