# connect the UVoffset to joint transform?

**URL:** <https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172>\
**Category:** Rendering\
**Tags:** joints, unreal-engine, question\
**Created:** [August 21, 2019, 7:06am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172 "2019-08-21T07:06:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 21, 2019, 7:06am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/1 "2019-08-21T07:06:50Z")

</div>

i animated character’s eyes with texture in maya . texture offset is connected to eye joints.  
thus when left and right eye joints goes to right, texture “offsetU” goes to right.

i wanted to transfer this animation to unreal.

 ![285482-image-8075.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/d/81d2121fed39e21cebbacffa82d871d4f3666e54.jpeg)

first i can reach uv offset in Unreal material editor.  
just like the picture below :

vector2 is connected UV coordinates. thus and so i can move the uv

BUT;

how can i connect this with eye joint transform?  
how can i do that with blueprint

thanks already, look forward news

there is an exaple on youtube but they didn’t explain it well :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/1/d91f0b9ee6cbcd4391081a4b68edd0c11322405a.jpeg "2D Eyes Maya to UE4") ](https://www.youtube.com/watch?v=pvLG4rmkB8A)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 21, 2019, 7:40am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/2 "2019-08-21T07:40:40Z")

</div>

You have to make the node you’re connecting with the TexCoord a parameter. Then make a material instance from the material and your parameter will be visible in the material instance. Then you can control that parameter from BP.

( In BP, drag the eye component into the code map, and drag a pin off and look for CreateDynamicMaterialInstance )

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 22, 2019, 5:27am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/3 "2019-08-22T05:27:56Z")

</div>

thank you for your answer, i came here:

i can control the eye UV in the material instance editor  
now the only problem is to connect “Get socket location” with “Set texture parameter” as you can see in the picture below; that is iam stuck here ! thank you so much already. look forward news

 ![285561-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/0/d50d78a2d75dda704e52c5cdf3b217a84c2d1e36.jpeg)

 ![285562-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/5/155019a4c22670d263939070fbd9441c63df4258.jpeg)

 ![285563-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/f/aaf0845d1930e9e59b91f2e79a3ed5c66ab1abcc.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2019, 7:04am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/4 "2019-08-22T07:04:38Z")

</div>

Get socket location wont help as that’s just to do with where the eye is. Somehow, get a reference to the material of the eye, and do this:

 ![285570-dynam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/b/aab28ee9681d0f06597fc3e3d4d39d1ce30750c1.jpeg)

In my case here, Eye is just a sphere, but you can still get a reference to the object…

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 22, 2019, 7:19am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/5 "2019-08-22T07:19:43Z")

</div>

thank you so much “ClockworkOcean” i will try.

god bless you

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 22, 2019, 7:57am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/6 "2019-08-22T07:57:23Z")

</div>

hi ClockworkOcean  
in evening i willl try your tutorial on model.but i worry about joints.  
that is my model with rigged.  
if you want you can try on rigged model.  
model.fbx is just rigged model/  
anim.fbx is included Right and Left eyeController joint animation.

[link text](https://dosya.co/72ytw8amfyem/model.fbx.html)

[link text](https://dosya.co/7ftoodk5s47e/anim.fbx.html)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2019, 10:23am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/7 "2019-08-22T10:23:24Z")

</div>

I imported you stuff, i put the skel mesh in a BP, the you can do this:

 ![285575-skel.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/8/e48dbbae6d784502ef4551b0dedf613208c2e081.jpeg)

Crucial parts are:

1. Element index - the left eye came in at slot 4 for me

2. Notice I made the material there eyeball\_L ( this needs to be a material instance )

3. When you use CreateDynamicMaterialInstance it gives you a pin to store the instance ( DynamicMat )

4. Then I set the vector parm ( your material parameter just ended up with the name Param after import, but I guess is will be something more meaningful in your version )

😃

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 22, 2019, 11:55am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/8 "2019-08-22T11:55:45Z")

</div>

you saved me and i got rid of spending time 🙂

my god bless you abundantly and exceedingly

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2019, 11:58am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/9 "2019-08-22T11:58:36Z")

</div>

You’re welcome. Please mark the question as answered 😉

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 22, 2019, 6:35pm UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/10 "2019-08-22T18:35:55Z")

</div>

Dear ClockworkOcean;  
if you dont mind i would like to ask this part,  
in this video i will show everyting, i did everything you do.  
even i created 2 blueprint. one of is “event graph” the other is “Actor graph”  
i dont get error messages i see the coordinates on the screen but they are constant.  
what is your suggestion  
thank you so much in advance

_**[- YouTube](https://www.youtube.com/watch?v=0YD9jiJngys&feature=youtu.be)**_

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2019, 6:44pm UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/11 "2019-08-22T18:44:27Z")

</div>

You’ve got it right buddy, but you need the BeginPlay connecting into the left of the CreateDynamicMatierialInstance ( it has to be ‘fired’ by something ) 😃

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 23, 2019, 6:04am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/12 "2019-08-23T06:04:34Z")

</div>

have a nice day “ClockworkOcean” 🙂  
at the end i finished and fired game:) it works and show joint rotation and rotate the eye Pupil.  
but it flees away.  
final process is to connect the joint(R\_eyeController) to Vector parameter in a right way.  
maybe we should use another node to get the exact location of the R\_eyeController ?  
my brain is burned 🙂 help me to finish this process.

that is the last video :

[![]( " - YouTube") ](https://www.youtube.com/watch?v=IhegjKT4OnM)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2019, 7:08am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/13 "2019-08-23T07:08:17Z")

</div>

Ok, do not connect socket node the SetVectorParameter! I know it works, but it doesn’t mean anything.

Make a variable of type LinearColor and plug that in there. This is the variable you can use at runtime to make the eye move.

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 23, 2019, 7:26am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/14 "2019-08-23T07:26:39Z")

</div>

thank you so much “ClockworkOcean”;  
but i dont wanna control the variable bymyself.  
i want the instance material’s value changes automatically.  
those should be controlling by the values ​​(x-y) of the eye joints (R\_eyeController and L\_eyeController)

because i animated eyes in maya.  
my plan is animating in maya and export after that import FBX animation to unreal.  
i dont create a game because of that i dont need to control eyes bymyself.

thanks thanks sooo much already

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2019, 7:32am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/15 "2019-08-23T07:32:10Z")

</div>

To be clear, you can run your maya animations that you’ve imported, but that would just be with PlayAnimation.

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 23, 2019, 8:13am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/16 "2019-08-23T08:13:14Z")

</div>

let me more clear about this;

eye textures driven by joints in maya. i exported fbx animation. but i need to animate textures by this joints. not mesh. i show this process in video,

[![]( " - YouTube") ](https://www.youtube.com/watch?v=e8_h1V7UoWA)

thanks again 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2019, 9:52am UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/17 "2019-08-23T09:52:27Z")

</div>

Ok, I’ve totally lost track now. Maybe check out this vid:

It tells you how to get from maya to UE. Looks like a bit of a nightmare frankly...

---

<div class="post-metadata">

**Author:** ![emrexconi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrexconi](https://forums.unrealengine.com/u/emrexconi)\
**Post date:** [August 23, 2019, 3:33pm UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/18 "2019-08-23T15:33:04Z")

</div>

we came a long way. just show me how to convert two nodes and connect them.  
there is just one connection that we need. i will show in the picture. we just need a converter between two values.—\>  
Get “R\_eyeController” joint’s translate values (x,y)  
and set them into “vector parameter value’s” R and G slot.

if you want you can see in the video  
[- YouTube](https://www.youtube.com/watch?v=IhegjKT4OnM&t=1s)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2019, 6:15pm UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/19 "2019-08-23T18:15:15Z")

</div>

Hi, yes I saw that vid. If you want to be able to tweak that color parameter and see the changes in realtime, then take that blueprint code you have and put it in the construction script ( next tab along the top ).

I’m sure you’ve noticed you can actually connect the GetSocketLocation into the color param. That’s only because they are both 3 numbers. Connecting them wont help I’m afraid.

Having talked about manipulating colors this whole time, I don’t think it’s where we need to be. The animations you have in Maya can be played in UE and you can manipulate the skeleton, but you have to set it up as in the vid I sent before ( [Custom Animations from Maya to UE4 [TUTORIAL] - YouTube](https://www.youtube.com/watch?v=6KsFfWIYTNg) ). That shows you how to make the bones work in UE.

Sorry to not be much help.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2019, 7:20pm UTC](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172/20 "2019-08-23T19:20:39Z")

</div>

Wait - I think it’s really simple. I have another asset which is a skel mesh with animations. All I had to do to play the anims was:

 ![285679-anim.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/5/e557e391b600f317dd734a68acc933df98dc3a44.jpeg)

[Next page](https://forums.unrealengine.com/t/connect-the-uvoffset-to-joint-transform/454172.md?page=2)
