# VtValue array question

**URL:** <https://forum.aousd.org/t/vtvalue-array-question/2322>\
**Category:** USD\
**Created:** [March 20, 2025, 9:12am UTC](https://forum.aousd.org/t/vtvalue-array-question/2322 "2025-03-20T09:12:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaptistePerrin](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/baptisteperrin/32/390_2.png) [@BaptistePerrin](https://forum.aousd.org/u/BaptistePerrin)\
**Post date:** [March 20, 2025, 9:12am UTC](https://forum.aousd.org/t/vtvalue-array-question/2322/1 "2025-03-20T09:12:15Z")

</div>

Hi guys,

If I have a VtValue which is a VtArray, T unknown, is there a way to split the VtValue in a vector of VtValue of T each containing an element of the array ?? Without checking each types like IsHolding\<VtArray\>, IsHolding\<VtArray\> etc ??

Thank you,

Baptiste

---

<div class="post-metadata">

**Author:** ![spiff](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/spiff/32/22_2.png) [@spiff](https://forum.aousd.org/u/spiff)\
**Post date:** [March 21, 2025, 12:50am UTC](https://forum.aousd.org/t/vtvalue-array-question/2322/2 "2025-03-21T00:50:03Z")

</div>

THink you should be able to do it using [VtVisitValue](https://github.com/PixarAnimationStudios/OpenUSD/blob/release/pxr/base/vt/visitValue.h#L36) (our doxygen is not catching it, currently)
