# HdDataSourceLegacyPrim Convert API

**URL:** <https://forum.aousd.org/t/hddatasourcelegacyprim-convert-api/1122>\
**Category:** Hydra\
**Created:** [January 11, 2024, 9:19pm UTC](https://forum.aousd.org/t/hddatasourcelegacyprim-convert-api/1122 "2024-01-11T21:19:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwin.bhat](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ashwin.bhat](https://forum.aousd.org/u/ashwin.bhat)\
**Post date:** [January 11, 2024, 9:19pm UTC](https://forum.aousd.org/t/hddatasourcelegacyprim-convert-api/1122/1 "2024-01-11T21:19:42Z")

</div>

Hi,  
There are a collection of `_Convert**ToHdDataSources` functions in `HdDataSourceLegacyPrim`.

> <https://github.com/PixarAnimationStudios/OpenUSD/blob/dev/pxr/imaging/hd/dataSourceLegacyPrim.cpp>

Are there any plans to expose them as helpful util api?

Thanks  
Ashwin

---

<div class="post-metadata">

**Author:** ![tomc](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@tomc](https://forum.aousd.org/u/tomc)\
**Post date:** [January 25, 2024, 12:26am UTC](https://forum.aousd.org/t/hddatasourcelegacyprim-convert-api/1122/2 "2024-01-25T00:26:02Z")

</div>

I’d like for frontend and backend emulation to be more accessible to random parts of code. HdLegacyPrimSceneIndex and HdSceneIndexAdapterSceneDelegate, unfortunately, both have awkward hooks into HdRenderIndex at the moment. This is definitely something we hope to tackle, but if you have specific suggestions let us know!

Thanks,  
Tom
