# How to initialize (set) a Skinned Mesh Variable thats inside Actor Component?

**URL:** <https://forums.unrealengine.com/t/how-to-initialize-set-a-skinned-mesh-variable-thats-inside-actor-component/1913161>\
**Category:** Character & Animation\
**Tags:** modular, poseable-mesh, unreal-engine, question, Blueprint\
**Created:** [June 22, 2024, 11:38pm UTC](https://forums.unrealengine.com/t/how-to-initialize-set-a-skinned-mesh-variable-thats-inside-actor-component/1913161 "2024-06-22T23:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [June 22, 2024, 11:38pm UTC](https://forums.unrealengine.com/t/how-to-initialize-set-a-skinned-mesh-variable-thats-inside-actor-component/1913161/1 "2024-06-22T23:38:25Z")

</div>

1. What are the nodes to create a “Skinned Mesh” Variable (from a SK mesh or whatever building block) - that is inside an Actor Component?

- (I will only have a ref to Owner’s (CharBP) “Skinned Mesh” variable, which has the animation/skel data, and which will be a Parent to the [Child] “Skinned Mesh” Variable that is inside the Actor Component.)

UE4.27:

1. I made an Actor Component (BPC) to hold all my code & variables (for a Modular mesh system) - so that I dont have to make 20 variables inside CharBP.
2. I added this BPC to CharBP (as an Actor Component).

- And (from within CharBP code), I only want to feed the Character “Mesh” to BPC’s custom Event. (This “Mesh” gives me 1 PARENT “Skinned Mesh component” to work with \> which I can use to set the [Pose of the] CHILD “Skinned Mesh component” which is inside the BPC.)

1. In BPC, I made a variable \> type = “Skinned Mesh Component.” (this will be the Child Mesh that I eventually want to attach to the Parent Mesh inside CharBP.)
2. **But how do I initialize/make/set this “Skinned Mesh Component” variable to something other than None [on BeginPlay or Event]?**

- I.e. how do I make a “Skinned Mesh Component” from scratch, when my code is not inside a CharacterBP (thus I cannot create Components [in an Actor Component], I can only create blank variables)?
- 
  - And I cannot (dont want to) feed a Child Skinned Mesh comp (variable) \> from CharBP \> to BPC - because then I’d have to create a copy of Skinned Mesh comp (variable) inside CharBP, …

- 
  - which defeats my goal of having a Modular Component (an Actor Component (BPC) that I can add to any CharBP, and change custom variables inside the BPC, instead of in CharBP).

Goals:

1. I know how to set a Modular Mesh system inside a CharBP. But I want the logic to be inside an Actor Component, which is INSIDE the CharBP. Thus Goal 1 is how to initialize/make/set the “Skinned Mesh Variable” to something other than None, at begin play of the BPC.
2. So that during Runtime, I can trigger an Event inside CharBP \>\> then:

- 

> trigger Event inside BPC (send only Char’s Parent Mesh) \>\>
> 
> ![CharBP code](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/0/a608abb2bc8e0678e3a6fea6fe287deb54bf64c5.png)

- 

> then change BPC’s internal “Skinned Mesh Variable” to a new SK \> and Set it to copy Master Pose (using Char’s Parent Mesh) \>\>
> 
> ![BPGraphScreenshot_2024Y-06M-22D-15h-14m-26s-256_00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/c/17cc7239f97906864123b789d8d8ca735df5679a.png)

- 

> then display/attach [BPC’s internal “Skinned Mesh Variable”] to CharBP’s Parent Mesh.

Please help, ty 🙂

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [June 24, 2024, 12:30am UTC](https://forums.unrealengine.com/t/how-to-initialize-set-a-skinned-mesh-variable-thats-inside-actor-component/1913161/2 "2024-06-24T00:30:23Z")

</div>

So Actor Components seem too restrictive for Mesh ops. (And thus wasting my exploring time, not giving me the option to move Mesh ops outside of CharBP.)

- I cant copy this node into Component graph: “Add Skeletal Mesh Component” (Even if I cant attach Comps to Actor Comp, I wanted the pin (green circle) to be fed from Char BP, while the Event/node fires within the Actor Comp).  
 ![UE4 need a way to make SK component to work with and make a Skinned component](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/7/847fc215169da7787b35c0d606afeb673d075fe9.png)

1. The original question was how to make a Skinned Mesh variable (which is actually a Component variable, not Object variable).
2. And the purple circle pin gives me an output of Skeletal Mesh COMP, which I need to get a Skinned Mesh COMP \> so that I can use the Set Skel Mesh node.
3. And I wanted to put this [create Mesh comp \> Set mesh SK] code in an Actor component (“BPC”), on an array (add meshes as needed), instead of putting messy code in CharBP. But now I cant (since I cant paste Add Skel Mesh Comp node into the Actor Component BPC).

And Child Actor also seems too restrictive \> cant set variables of Child actor, in the Instance of Parent BP. (I.e. if I place CharBP in map, then I cant edit Child actor’s vars \> to make unique characters. I want Parent’s Construct to use updated Child’s vars \> and produce a change (unique characters). But it doesnt work.)

Anyone know a workaround to compartmentalize? (to put all my Mesh ops/set Master/Leader code in [somewhere other than CharBP])
