& Construction
![architecture engineering and construction collection logo](https://damassets.autodesk.net/content/dam/autodesk/www/universal-header/flyout/architecture-engineering-construction-collection-uhblack-banner-lockup-364x40.png)
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing
![product design manufacturing collection logo](https://damassets.autodesk.net/content/dam/autodesk/www/universal-header/flyout/product-design-manufacturing-collection-uhblack-banner-lockup-364x40.png)
Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Create a condition node that checks for a follow attribute set to anything other than World or 0.
Type:
Tutorial
Length:
4 min.
Transcript
00:03
Right. Let's start wiring these up,
00:06
create a new blend matrix node,
00:09
call it arm left space blend,
00:13
select the arm I control
00:15
and open the attribute editor.
00:17
So we need to store these values in the blend matrix node.
00:23
Let's copy the tab,
00:24
select the blend matrix node
00:27
and copy the values across to store them.
00:30
Remember this will be the world space position.
00:33
OK? Now add three more items.
00:37
One for each of the locators we created
00:41
now connect the locators to the blend matrix node.
00:45
So the cog locator world matrix zero attribute goes into target zero target matrix,
00:53
the hips world matrix attribute
00:56
connects to the target one target matrix.
00:60
And finally, the clavicle world matrix attribute
01:04
connects to target two target matrix.
01:07
OK? Those locator positions are now in the blend matrix node.
01:13
So we can then use that to switch between them,
01:17
right? Let's make some room.
01:19
Unlike the previous blend matrix node,
01:21
we can't rely on the envelope attribute to dictate where the rik control goes.
01:27
All this will do is gradually blend between
01:30
each of the locators whereas we want a distinct
01:34
snap to each.
01:36
So what we need is basically a switch of salts,
01:40
create a new node. But this time create a condition node.
01:43
And let's call this arm left space condition.
01:48
So what a conditioned node does
01:50
is checks two values and compares them
01:53
depending on the outcome.
01:55
A different value is then output from the node.
01:58
So the first term here is compared against the second term value,
02:02
we have an operation which we can change depending on what we are checking.
02:07
So by default, it will see if both values are equal.
02:11
But you can check if the second term is greater than the first term,
02:14
less than the first term.
02:16
And there are many other options you can look at
02:19
let's leave it as equal for now.
02:21
So when the first term is equal to the second term,
02:24
the node will output values from the color if true row here,
02:29
if they aren't equal, it outputs the color of false value instead.
02:34
So it's quite a powerful node and one I use all the time,
02:38
let's wire this up. So you can see how it can be used,
02:42
open it up first.
02:44
So these are the output values
02:46
and they represent each column here.
02:49
RG and B
02:51
as mentioned earlier, we won't be using the envelope slider this time
02:55
instead, we will be using each target weight attribute.
03:01
Let's open this. So we can see them,
03:04
we have three columns coming from the condition node and three targets to control.
03:09
So we can do this with the condition node
03:12
connect out color R to target zero's weight value,
03:16
out color G connects to target one's weight attribute.
03:21
And finally, out color B connects to target one's way to attribute.
03:26
So we will be using the condition note to switch the weight values on and off,
03:30
which will change what the hand control follows.
03:34
Speaking of which, let's bring that in now
03:37
and move it up here.
03:39
So what we are interested in is the follow attribute here,
03:43
which has the four options in it.
03:45
Connect that to first term
03:48
if we look at that now
03:50
you see first term is set to zero which represents the world option,
03:55
drop down boxes or
03:57
EOMs like this always output numbers. So world is equal to zero.
04:02
We can use this first condition node to check if the
04:04
follow attribute is set to anything other than world or zero,
04:09
it will then use the attributes below.
Video transcript
00:03
Right. Let's start wiring these up,
00:06
create a new blend matrix node,
00:09
call it arm left space blend,
00:13
select the arm I control
00:15
and open the attribute editor.
00:17
So we need to store these values in the blend matrix node.
00:23
Let's copy the tab,
00:24
select the blend matrix node
00:27
and copy the values across to store them.
00:30
Remember this will be the world space position.
00:33
OK? Now add three more items.
00:37
One for each of the locators we created
00:41
now connect the locators to the blend matrix node.
00:45
So the cog locator world matrix zero attribute goes into target zero target matrix,
00:53
the hips world matrix attribute
00:56
connects to the target one target matrix.
00:60
And finally, the clavicle world matrix attribute
01:04
connects to target two target matrix.
01:07
OK? Those locator positions are now in the blend matrix node.
01:13
So we can then use that to switch between them,
01:17
right? Let's make some room.
01:19
Unlike the previous blend matrix node,
01:21
we can't rely on the envelope attribute to dictate where the rik control goes.
01:27
All this will do is gradually blend between
01:30
each of the locators whereas we want a distinct
01:34
snap to each.
01:36
So what we need is basically a switch of salts,
01:40
create a new node. But this time create a condition node.
01:43
And let's call this arm left space condition.
01:48
So what a conditioned node does
01:50
is checks two values and compares them
01:53
depending on the outcome.
01:55
A different value is then output from the node.
01:58
So the first term here is compared against the second term value,
02:02
we have an operation which we can change depending on what we are checking.
02:07
So by default, it will see if both values are equal.
02:11
But you can check if the second term is greater than the first term,
02:14
less than the first term.
02:16
And there are many other options you can look at
02:19
let's leave it as equal for now.
02:21
So when the first term is equal to the second term,
02:24
the node will output values from the color if true row here,
02:29
if they aren't equal, it outputs the color of false value instead.
02:34
So it's quite a powerful node and one I use all the time,
02:38
let's wire this up. So you can see how it can be used,
02:42
open it up first.
02:44
So these are the output values
02:46
and they represent each column here.
02:49
RG and B
02:51
as mentioned earlier, we won't be using the envelope slider this time
02:55
instead, we will be using each target weight attribute.
03:01
Let's open this. So we can see them,
03:04
we have three columns coming from the condition node and three targets to control.
03:09
So we can do this with the condition node
03:12
connect out color R to target zero's weight value,
03:16
out color G connects to target one's weight attribute.
03:21
And finally, out color B connects to target one's way to attribute.
03:26
So we will be using the condition note to switch the weight values on and off,
03:30
which will change what the hand control follows.
03:34
Speaking of which, let's bring that in now
03:37
and move it up here.
03:39
So what we are interested in is the follow attribute here,
03:43
which has the four options in it.
03:45
Connect that to first term
03:48
if we look at that now
03:50
you see first term is set to zero which represents the world option,
03:55
drop down boxes or
03:57
EOMs like this always output numbers. So world is equal to zero.
04:02
We can use this first condition node to check if the
04:04
follow attribute is set to anything other than world or zero,
04:09
it will then use the attributes below.
Industry:
Role:
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Sign in for the best experience
Save your progress
Get access to courses
Receive personalized recommendations
May we collect and use your data?
Learn more about the Third Party Services we use and our Privacy Statement.May we collect and use your data to tailor your experience?
Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.