# Getting the bone position from USCS\_Node for USkeletalMeshComponent

**URL:** <https://forums.unrealengine.com/t/getting-the-bone-position-from-uscs-node-for-uskeletalmeshcomponent/2137571>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 20, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/getting-the-bone-position-from-uscs-node-for-uskeletalmeshcomponent/2137571 "2024-11-20T13:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkloczko1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mkloczko1](https://forums.unrealengine.com/u/mkloczko1)\
**Post date:** [November 20, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/getting-the-bone-position-from-uscs-node-for-uskeletalmeshcomponent/2137571/1 "2024-11-20T13:12:39Z")

</div>

Hi, is there a way to get bone positions from `USkeletalMeshComponent` nodes that are obtained using `USCS_Node` from `UBlueprint`s? I have a hack that uses bone matrices from `USkeletalMeshComponent::CacheRefToLocalMatrices(...)` but I wonder why does the `USkeletalMeshComponent::GetBoneLocation(BoneName, EBoneSpaces::Type::ComponentSpace)` crash.

---

<div class="post-metadata">

**Author:** ![mkloczko1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mkloczko1](https://forums.unrealengine.com/u/mkloczko1)\
**Post date:** [November 20, 2024, 4:45pm UTC](https://forums.unrealengine.com/t/getting-the-bone-position-from-uscs-node-for-uskeletalmeshcomponent/2137571/2 "2024-11-20T16:45:13Z")

</div>

Ok, found a solution that works for my use case.

1. Create a new `USkeletalMeshComponent`, assign the `USkeletalMesh` from the `USCS_Node`’s `USkeletalMeshComponent`.
2. Register it.

```auto
UWorld * World = GEditor ? GEditor->GetEditorWorldContext().World() : nullptr;
Component->RegisterComponentWithWorld(World);

```
