I'm playing with setting up blend shapes, and driving it with null controller boxes.
It works fine, but I want to split right and left by using a red color value in the blend expression. What ever I try fails, and I feel really stupid at this stage.
The expression so far (fit01(ch(“../../control/tx”),0,2)) and I want to multiply it by the red color channel, but Nooooo. It does not work. What am I doing wrong?
Driving blendshape with $CR
5780 8 2- Werner Ziemerink
- Member
- 1265 posts
- Joined: March 2014
- Offline
- Andy_23
- Member
- 918 posts
- Joined: March 2014
- Offline
Hi Werner,
I'm not sure this can be done in the blend node. Since the value from tx is a float just as the blend node slider this simply works. But the color is an attribute per point, hence not a single float value, but as many values as points on the geometry.
From my limited understanding, I don't think you can fit it into the blend node this way.
I admit, I don't fully understand why you want to control this by color instead of another shape feeding into the blend node. Can you explain further?
Cheers,
Andy
I'm not sure this can be done in the blend node. Since the value from tx is a float just as the blend node slider this simply works. But the color is an attribute per point, hence not a single float value, but as many values as points on the geometry.
From my limited understanding, I don't think you can fit it into the blend node this way.
I admit, I don't fully understand why you want to control this by color instead of another shape feeding into the blend node. Can you explain further?
Cheers,
Andy
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- Werner Ziemerink
- Member
- 1265 posts
- Joined: March 2014
- Offline
Thanks for the replies
Let me explain a bit more. I'm trying to find an easier way to bring in multiple shapes (maybe from zbrush) where both left and right was sculpted with symmetry on, instead of having twice the amount of shapes to cater for left and right side separately.
What I'm trying to achieve, is splitting the left and right side of my model using the red color channel, before it hits the BlendShape SOP.
I'm starting to think that I might just use an AttribVop to set up my own shape blending.
Let me explain a bit more. I'm trying to find an easier way to bring in multiple shapes (maybe from zbrush) where both left and right was sculpted with symmetry on, instead of having twice the amount of shapes to cater for left and right side separately.
What I'm trying to achieve, is splitting the left and right side of my model using the red color channel, before it hits the BlendShape SOP.
I'm starting to think that I might just use an AttribVop to set up my own shape blending.
- Andy_23
- Member
- 918 posts
- Joined: March 2014
- Offline
Yeah, arctor has a point (no pun intended). Use the point SOP to separate the symmetry based on color and set up all your shapes nicely prior to the blend SOP.
Use the point SOP with this expression on the position parameter:
x = if($CR > 0,$TX,$TX2)
y = if($CR > 0,$TY,$TY2)
z = if($CR > 0,$TZ,$TZ2)
and feed your non-deformed shape into the point SOPs second input.
edit: I corrected the z entry.
Use the point SOP with this expression on the position parameter:
x = if($CR > 0,$TX,$TX2)
y = if($CR > 0,$TY,$TY2)
z = if($CR > 0,$TZ,$TZ2)
and feed your non-deformed shape into the point SOPs second input.
edit: I corrected the z entry.
Edited by - March 11, 2015 15:11:33
- Werner Ziemerink
- Member
- 1265 posts
- Joined: March 2014
- Offline
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- Werner Ziemerink
- Member
- 1265 posts
- Joined: March 2014
- Offline
- Andy_23
- Member
- 918 posts
- Joined: March 2014
- Offline
-
- Quick Links