# Can't change Component's location in editor?

**URL:** <https://forums.unrealengine.com/t/cant-change-components-location-in-editor/1366656>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 5, 2023, 9:45pm UTC](https://forums.unrealengine.com/t/cant-change-components-location-in-editor/1366656 "2023-11-05T21:45:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inconceivable](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inconceivable](https://forums.unrealengine.com/u/Inconceivable)\
**Post date:** [November 5, 2023, 9:45pm UTC](https://forums.unrealengine.com/t/cant-change-components-location-in-editor/1366656/1 "2023-11-05T21:45:03Z")

</div>

I have a blueprint with a component that I need to set the relative location of by means of a calculation. I have a C++ class that does this, and it works perfectly when I calculate the location from the component’s PostEditChangeProperty function.

However, I also have a python script that I use. I exposed a Blueprint function from the class, and called call\_method(“CalculatePosition”) on the component, and… no effect. I’ve verified that the function is getting called as expected, but no matter what I try I can’t seem to effect the component’s transform when called that way. Any help?
