# Editing physics assets via python

**URL:** <https://forums.unrealengine.com/t/editing-physics-assets-via-python/142027>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [April 23, 2020, 12:06am UTC](https://forums.unrealengine.com/t/editing-physics-assets-via-python/142027 "2020-04-23T00:06:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3dbeb1611](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anonymous_user_3dbeb1611/32/1174230_2.png) [@anonymous\_user\_3dbeb1611](https://forums.unrealengine.com/u/anonymous_user_3dbeb1611)\
**Post date:** [April 23, 2020, 12:06am UTC](https://forums.unrealengine.com/t/editing-physics-assets-via-python/142027/1 "2020-04-23T00:06:01Z")

</div>

Hi all,

I’m trying to learn the UE4 python API and I’m running into issues right off the bat. I can load my asset ([unreal.PhysicsAsset](https://docs.unrealengine.com/en-US/PythonAPI/class/PhysicsAsset.html)) but it’s not a very helpful object - I can’t figure out how to get into all of the stuff that it should contain. I need to read and write the properties like damping, mass, angle limits, etc. from its bodies and constraints. But where are they?

For contrast, I look at the [C++ UPhysicsAsset class docs](https://docs.unrealengine.com/en-US/API/Runtime/Engine/PhysicsEngine/UPhysicsAsset/index.html) and see, right there, that is has a ConstraintSetup member, as well as SkeletalBodySetups. That’s what I need. How do I find and edit this data with the python API?

---

<div class="post-metadata">

**Author:** ![anbavuong2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anbavuong2](https://forums.unrealengine.com/u/anbavuong2)\
**Post date:** [October 1, 2024, 4:53am UTC](https://forums.unrealengine.com/t/editing-physics-assets-via-python/142027/2 "2024-10-01T04:53:30Z")

</div>

I found unreal.ConstraintInstanceBlueprintLibrary for modify constraint, and I am finding a way to modify bodies!~ :D, Please let me know if you have a solution!~ 😄

---

<div class="post-metadata">

**Author:** ![AgentNeoslav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentNeoslav](https://forums.unrealengine.com/u/AgentNeoslav)\
**Post date:** [June 19, 2025, 11:02am UTC](https://forums.unrealengine.com/t/editing-physics-assets-via-python/142027/3 "2025-06-19T11:02:57Z")

</div>

Did you find a solution for this? Unreal Python API is a nightmare ☹
