# PointInstancer using positions from a usdSkel deformed mesh

**URL:** <https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562>\
**Category:** USD\
**Tags:** python\
**Created:** [May 29, 2024, 12:35am UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562 "2024-05-29T00:35:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dietchmatch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dietchmatch/32/548_2.png) [@dietchmatch](https://forum.aousd.org/u/dietchmatch)\
**Post date:** [May 29, 2024, 12:35am UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/1 "2024-05-29T00:35:29Z")

</div>

Hi!  
I’m having some trouble trying to create ( python API ) a pointInstancer using positions from a UsdSkel binded geometry.  
Is this even possible?

Thanks a ton!

---

<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:** [May 29, 2024, 4:14am UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/2 "2024-05-29T04:14:51Z")

</div>

This is not currently possible, as it requires propagating computations in a general way, whereas UsdSkel is implemented in a fairly specialized way right now. This is the kind of thing OpenExec should enable us to do.

---

<div class="post-metadata">

**Author:** ![dietchmatch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dietchmatch/32/548_2.png) [@dietchmatch](https://forum.aousd.org/u/dietchmatch)\
**Post date:** [June 4, 2024, 5:31am UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/3 "2024-06-04T05:31:05Z")

</div>

thanks @spiff , i was fearing that ☹  
workflow for now is to use UsdSkelBakeSkinning to get those values printed, but maybe there’s a better way i’m not aware of, is it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dietchmatch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dietchmatch/32/548_2.png) [@dietchmatch](https://forum.aousd.org/u/dietchmatch)\
**Post date:** [September 20, 2024, 1:04pm UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/4 "2024-09-20T13:04:40Z")

</div>

Hi again,  
I was wondering, @spiff, if it makes sense to create a usd procedural plugin that performs the bakeSkinning for that geo, gets the values and then sets the values into my pointInstancer node.  
Does that sound reasonable?  
Thanks!

---

<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:** [September 21, 2024, 10:57pm UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/5 "2024-09-21T22:57:26Z")

</div>

Hi @dietchmatch , you probably _could_ write a UsdProcGenerativeProcedural that did that, and manually trigger it at the appropriate points in your pipeline… but that’s not really what it is intended for. Note the “Generative” part of the name - it’s meant to add new geometry that provides further/fine details, **not** modify existing geometry.

The primary reason for that intended restriction is that we want the geometry in the scene to be “correct” whenever you open the stage, so that any script that wants to do some processing will have the right data. If you were to implement the GenerativeProcedural as a Hydra procedural, then you’d always get the right answer in your renders, but **never** get the right answer anywhere else. And if you implement it as an offline computation, as I suggested, you’re on the hook for running it and saving the results manually.

---

<div class="post-metadata">

**Author:** ![dietchmatch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dietchmatch/32/548_2.png) [@dietchmatch](https://forum.aousd.org/u/dietchmatch)\
**Post date:** [September 23, 2024, 2:06pm UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/6 "2024-09-23T14:06:32Z")

</div>

mmm maybe i could switch my workflow so the pointInstancer gets created on that procedural instead of modifying an existing one? ( guess that might be less awkward? )  
Anyways … is there a way to get the deformed point positions ( i mean after UsdSkel is performed ) apart from UsdBakeSkinning?  
Thanks in advance!  
Javi

---

<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:** [September 23, 2024, 5:46pm UTC](https://forum.aousd.org/t/pointinstancer-using-positions-from-a-usdskel-deformed-mesh/1562/7 "2024-09-23T17:46:12Z")

</div>

UsdBakeSkinning uses smaller pieces of UsdSkel utility code - have a look at the implementation to see what might be useful to you.
