# Reparent a Prim under another Prim

**URL:** <https://forum.aousd.org/t/reparent-a-prim-under-another-prim/1657>\
**Category:** USD\
**Created:** [July 3, 2024, 8:24pm UTC](https://forum.aousd.org/t/reparent-a-prim-under-another-prim/1657 "2024-07-03T20:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![BigRoyNL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/bigroynl/32/413_2.png) [@BigRoyNL](https://forum.aousd.org/u/BigRoyNL)\
**Post date:** [July 4, 2024, 5:11pm UTC](https://forum.aousd.org/t/reparent-a-prim-under-another-prim/1657/7 "2024-07-04T17:11:14Z")

</div>

Potentially these code snippets in `usd-qtpy` here may guide you along:

- [`move_prim_spec`](https://github.com/BigRoy/usd-qtpy/blob/main/usd_qtpy/lib/usd.py#L126-L187)
- [`parent_prims`](https://github.com/BigRoy/usd-qtpy/blob/main/usd_qtpy/lib/usd.py#L242-L291)

Note that these will start changing `PrimSpec` opinions across the layers, and hence may influence many layers - potentially spanning across layers, references, payloads, etc.

More details on [Editing Prim Specs where answered on the forum here](https://forum.aousd.org/t/api-basics-for-designing-a-manage-edits-editor-for-usd/676/9) and in the past I’ve faced [some issues with batch namespace edits in variant sets](https://forum.aousd.org/t/perform-namespace-edit-inside-a-variant-set-edit-target/1006) which you may be useful background info if you run into crashes.

---

_[View the full topic](https://forum.aousd.org/t/reparent-a-prim-under-another-prim/1657)._
