createAttributeMetadata#

omni::core::Result createAttributeMetadata(
omni::graph::core::NameToken attribute,
omni::graph::core::NameToken const *const fieldNames,
omni::graph::core::Type const *const fieldTypes,
size_t fieldCount,
size_t const *const elementCount = nullptr,
omni::graph::core::AttributeDataHandle *const attributeMetadata = nullptr,
size_t *const createdCount = nullptr,
) noexcept#

Create attribute metadata fields.

Parameters:
  • attribute – Name of the attribute.

  • fieldNames – Names of new attribute metadata fields.

  • fieldTypes – Types of new attribute metadata fields.

  • elementCount – Number of elements in the array, can be nullptr if field is not an array.

  • fieldCount – Size of fieldNames and fieldTypes arrays.

  • attributeMetadata – Handles to the newly created attribute metadata. Can be nullptr if no output is required.

  • createdCount – Number of attribute metadata fields successfully created.

Returns:

Success if executed successfully, Fail for unsuccessful execution, InvalidArgument if arguments are invalid.