# Getting actor transform from blueprint in c++

**URL:** <https://forums.unrealengine.com/t/getting-actor-transform-from-blueprint-in-c/442821>\
**Category:** Blueprint\
**Tags:** actor-location, unreal-engine, Scripting, question\
**Created:** [February 6, 2019, 8:56am UTC](https://forums.unrealengine.com/t/getting-actor-transform-from-blueprint-in-c/442821 "2019-02-06T08:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0e83961b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0e83961b](https://forums.unrealengine.com/u/anonymous_user_0e83961b)\
**Post date:** [February 6, 2019, 8:56am UTC](https://forums.unrealengine.com/t/getting-actor-transform-from-blueprint-in-c/442821/1 "2019-02-06T08:56:32Z")

</div>

Hi,  
I have imported CAD models from solidworks and I am simulating them in a blank project. it is based on blueprints, but I have created some functions in c++ and I am using them in blueprints.  
I need to get my actors’ (CAD models) location/orientation constantly and pass them in to the PLC for real-time process. I can obviously get that in BP. But is there anyway to access these variables from C++ directly?

I appreciate any help,

---

<div class="post-metadata">

**Author:** ![Unfathomable](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unfathomable](https://forums.unrealengine.com/u/Unfathomable)\
**Post date:** [February 6, 2019, 1:47pm UTC](https://forums.unrealengine.com/t/getting-actor-transform-from-blueprint-in-c/442821/2 "2019-02-06T13:47:01Z")

</div>

If your C++ functions need to change the variables, then it’s easiest to declare them in C++ and set them in BP. Then you have access to read/write in both C++ and BP.

If you do not need to edit those variables, then you can pass them into your C++ function calls as a parameter, from BP.
