• Maya

Clamping the heel joint roll back

Configure a condition node to stop the ball joint from rolling back as the foot rolls onto the heel.


00:03

As the foot rolls backwards onto the heel,

00:06

the ball joint continues to roll back too,

00:09

which we don't want.

00:11

So we need a way to clamp that

00:13

let's reset the foot,

00:17

select the ball joint

00:19

and graphics connections.

00:21

I'll just open these.

00:24

So we need another condition node which will tell the ball

00:27

to stop rotating if the foot roll attribute goes under zero.

00:32

And we can put this between the main condition node and the ball joint.

00:36

We will call this one clamp.

00:40

Connect out color R from the foot left roll condition node

00:44

to the first term attribute on the clamp condition node.

00:48

Let's check the attribute editor.

00:51

OK? Reset these.

00:54

So set this to zero

00:56

and operation to less than

00:58

because we are checking for when it goes back onto the heel.

01:01

OK? Now connect out color R again

01:04

from the roll condition node

01:07

to color if false R

01:09

and we will leave color if true R set to zero.

01:12

So if the foot roll is below zero, the

01:15

ball joint stays at zero.

01:18

Now connect out color R from the clamp condition node

01:21

to the rotate X attribute on the reverse ball joint.

01:25

OK? Give it another try now.

01:30

Perfect. Works like a charm.

Video transcript

00:03

As the foot rolls backwards onto the heel,

00:06

the ball joint continues to roll back too,

00:09

which we don't want.

00:11

So we need a way to clamp that

00:13

let's reset the foot,

00:17

select the ball joint

00:19

and graphics connections.

00:21

I'll just open these.

00:24

So we need another condition node which will tell the ball

00:27

to stop rotating if the foot roll attribute goes under zero.

00:32

And we can put this between the main condition node and the ball joint.

00:36

We will call this one clamp.

00:40

Connect out color R from the foot left roll condition node

00:44

to the first term attribute on the clamp condition node.

00:48

Let's check the attribute editor.

00:51

OK? Reset these.

00:54

So set this to zero

00:56

and operation to less than

00:58

because we are checking for when it goes back onto the heel.

01:01

OK? Now connect out color R again

01:04

from the roll condition node

01:07

to color if false R

01:09

and we will leave color if true R set to zero.

01:12

So if the foot roll is below zero, the

01:15

ball joint stays at zero.

01:18

Now connect out color R from the clamp condition node

01:21

to the rotate X attribute on the reverse ball joint.

01:25

OK? Give it another try now.

01:30

Perfect. Works like a charm.

Was this information helpful?