• Maya

Adding FK/IK condition check

Connect the condition node to the blend node to create a check between working in IK mode or FK mode. 


00:03

Now let's connect the condition node to our other blend colors node.

00:07

So we can check if we are working in IK or FK.

00:11

So take out color R and connect it to color two R.

00:16

And we also need to control this with the IKFK switch attribute too.

00:21

So connect that from the COCA control to the blender attribute.

00:26

OK. Anything else?

00:28

Ah Yes, we need the scale factor value to also be connected to the stretch blend node.

00:34

Otherwise we won't know what values we are using.

00:37

Connect it to color one R.

00:41

So this will blend between the amount the joints need to scale here

00:45

or a static value of one if the stretchiness is disabled.

00:50

OK, let's move the control up a little. So we can see the spine update.

00:55

And now we need to connect this network to the joints,

00:59

bring the main ICA joints into the node editor.

01:02

So these are spine 12 and three.

01:06

We don't connect the pelvis or the neck because

01:09

this will then affect the pelvis and head.

01:11

Whereas we want this restricted to just the spine.

01:15

Now simply connect output R to each joint scale Y attribute.

01:20

We use scale Y because that is the axis which is pointing down each joint.

01:25

OK. That's done.

01:28

Let's check the attributes.

01:30

So we need stretchiness to be enabled

01:34

and stretch type to be both.

01:37

OK? There, the spine snapped into position.

01:40

I can move the shoulder control now and the torso stretches to move with it.

01:46

We can also adjust the stretchiness to turn it off if needed.

01:50

Let's check the attributes.

01:54

OK? They aren't working yet.

01:56

Maybe we missed something.

01:59

Oh, yes. On the condition node, we need the second term to be set to one.

02:04

If the first term is above one,

02:06

the spine is stretching if it's below one and it's squashing.

02:10

So with it being set to zero, it wasn't triggering correctly.

02:15

Ok. That's only squashing. Now,

02:19

now it's working both ways. So both squashing and stretching.

Video transcript

00:03

Now let's connect the condition node to our other blend colors node.

00:07

So we can check if we are working in IK or FK.

00:11

So take out color R and connect it to color two R.

00:16

And we also need to control this with the IKFK switch attribute too.

00:21

So connect that from the COCA control to the blender attribute.

00:26

OK. Anything else?

00:28

Ah Yes, we need the scale factor value to also be connected to the stretch blend node.

00:34

Otherwise we won't know what values we are using.

00:37

Connect it to color one R.

00:41

So this will blend between the amount the joints need to scale here

00:45

or a static value of one if the stretchiness is disabled.

00:50

OK, let's move the control up a little. So we can see the spine update.

00:55

And now we need to connect this network to the joints,

00:59

bring the main ICA joints into the node editor.

01:02

So these are spine 12 and three.

01:06

We don't connect the pelvis or the neck because

01:09

this will then affect the pelvis and head.

01:11

Whereas we want this restricted to just the spine.

01:15

Now simply connect output R to each joint scale Y attribute.

01:20

We use scale Y because that is the axis which is pointing down each joint.

01:25

OK. That's done.

01:28

Let's check the attributes.

01:30

So we need stretchiness to be enabled

01:34

and stretch type to be both.

01:37

OK? There, the spine snapped into position.

01:40

I can move the shoulder control now and the torso stretches to move with it.

01:46

We can also adjust the stretchiness to turn it off if needed.

01:50

Let's check the attributes.

01:54

OK? They aren't working yet.

01:56

Maybe we missed something.

01:59

Oh, yes. On the condition node, we need the second term to be set to one.

02:04

If the first term is above one,

02:06

the spine is stretching if it's below one and it's squashing.

02:10

So with it being set to zero, it wasn't triggering correctly.

02:15

Ok. That's only squashing. Now,

02:19

now it's working both ways. So both squashing and stretching.

Was this information helpful?