# Is there a way to use arrays in a control rig?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104>\
**Category:** Character & Animation\
**Tags:** array-nodes, unreal-engine, question\
**Created:** [May 8, 2021, 3:54pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104 "2021-05-08T15:54:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheepySnake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cheepySnake](https://forums.unrealengine.com/u/cheepySnake)\
**Post date:** [May 8, 2021, 3:54pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104/1 "2021-05-08T15:54:26Z")

</div>

Hi!  
I’m using the control rig to set bone transforms from an external blueprint. Everything works fine with ordinary variables, but I want to use arrays - it’s much easier that way. Is there some way to get transforms from an array by index?  
The obvious solution doesn’t work for a some reason not obvious to me:

 ![338322-example.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/e/24e59d7fffaed0c42c32a58c0400aa127654d13e.png)

For now, I get around with separate variables, but it even looks like idiocy:

 ![338323-example2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/0/0106f955d3356656dc6d097f34398f8d09a26819.png)

---

<div class="post-metadata">

**Author:** ![hzn84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hzn84](https://forums.unrealengine.com/u/hzn84)\
**Post date:** [October 6, 2021, 10:28pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104/2 "2021-10-06T22:28:46Z")

</div>

Would like to know that too. This really complicates things.

---

<div class="post-metadata">

**Author:** ![JoCo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joco/32/967114_2.png) [@JoCo](https://forums.unrealengine.com/u/JoCo)\
**Post date:** [April 27, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104/3 "2022-04-27T16:05:58Z")

</div>

Upping this up!

In order to use Control Rig in production, Unreal needs to support instance editable Arrays.  
Otherwise CRs are limited to predefined number of joints instead of letting a user enter an array of joints (with names for instance, or structures…)

I did try to workaround and expose a _Items_ var because I noticed that’s how the CR called Arrays. But using that Collection type var in the CR would just make it crash right away when plugging it in a _For each item_ node.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/a/9bab30e618e9c525b03db37631fb397cd3ba828d.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/b/61b71297834f3ae159329dbc2f2cbc9db3158b2b.png)

My only workaround for now was doing like @cheepySnake and exposing as many variables as members I need (at least structures help you store more into one var. I have an Array externally to the CR node, in the ABP, to set my Array more easily, but I still have to _Get a Copy_ and break it down into separate members :’( )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/f/34f23fed58acc1f082076d17469b6a4b77597e2a.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/8/c0878a81d9a344e6f356de79aa28c7dbd95c3e18.png)

---

<div class="post-metadata">

**Author:** ![NamInUz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NamInUz](https://forums.unrealengine.com/u/NamInUz)\
**Post date:** [June 7, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-arrays-in-a-control-rig/483104/4 "2024-06-07T13:12:09Z")

</div>

I Think that you should use “At” instead of “get”
