Q: Cleaning up skin tones, Shake script not working
I am trying to alter a sequence of this actor here:
http://img353.imageshack.us/i/870177trythiscopyxt8.jpg/?a=j&ci=-1&rt=2
With what is being described here:
http://forums.creativecow.net/thread/154/855212
What I come up with is this:
N870177trythis = SFileIn("//User\xd5s mac pro/Volumes/SUN/870177trythis.jpg",
"Auto", 0, 0, "v1.1", "0", "");
Blur1 = Blur(N870177trythis, 34.1, xPixels/GetDefaultAspect(),
0, "gauss", xFilter, "rgba");
Saturation1 = Saturation(N870177trythis, 10);
SwitchMatte1 = SwitchMatte(Blur1, Saturation1, 1, "R", 1, 0);
// User Interface settings
SetKey(
"nodeView.Blur1.t", "0",
"nodeView.Blur1.x", "210.75",
"nodeView.Blur1.y", "579",
"nodeView.N870177trythis.t", "1",
"nodeView.N870177trythis.tnChannel", "0",
"nodeView.N870177trythis.tnTime", "1",
"nodeView.N870177trythis.tnVisible", "1",
"nodeView.N870177trythis.x", "258.5",
"nodeView.N870177trythis.y", "640.125",
"nodeView.Saturation1.t", "0",
"nodeView.Saturation1.x", "370.5",
"nodeView.Saturation1.y", "589.75",
"nodeView.SwitchMatte1.t", "0",
"nodeView.SwitchMatte1.x", "305.25",
"nodeView.SwitchMatte1.y", "490.75"
);
I am sure that I am missing something basic but I just cannot seem to get this script to work.
Any help is appreciated.
http://img353.imageshack.us/i/870177trythiscopyxt8.jpg/?a=j&ci=-1&rt=2
With what is being described here:
http://forums.creativecow.net/thread/154/855212
What I come up with is this:
N870177trythis = SFileIn("//User\xd5s mac pro/Volumes/SUN/870177trythis.jpg",
"Auto", 0, 0, "v1.1", "0", "");
Blur1 = Blur(N870177trythis, 34.1, xPixels/GetDefaultAspect(),
0, "gauss", xFilter, "rgba");
Saturation1 = Saturation(N870177trythis, 10);
SwitchMatte1 = SwitchMatte(Blur1, Saturation1, 1, "R", 1, 0);
// User Interface settings
SetKey(
"nodeView.Blur1.t", "0",
"nodeView.Blur1.x", "210.75",
"nodeView.Blur1.y", "579",
"nodeView.N870177trythis.t", "1",
"nodeView.N870177trythis.tnChannel", "0",
"nodeView.N870177trythis.tnTime", "1",
"nodeView.N870177trythis.tnVisible", "1",
"nodeView.N870177trythis.x", "258.5",
"nodeView.N870177trythis.y", "640.125",
"nodeView.Saturation1.t", "0",
"nodeView.Saturation1.x", "370.5",
"nodeView.Saturation1.y", "589.75",
"nodeView.SwitchMatte1.t", "0",
"nodeView.SwitchMatte1.x", "305.25",
"nodeView.SwitchMatte1.y", "490.75"
);
I am sure that I am missing something basic but I just cannot seem to get this script to work.
Any help is appreciated.
Mac OS X (10.5.4), samba
Posted on Dec 24, 2010 7:13 AM
by stuckfootage,Solvedanswer
Hi,
You forgot the Over node at the end, which combines blurred skin with clear BG.
Looking at the alpha channel of the SwitchMatte node, I see that the matte
is not very good, so I inserted an Expand node to push up the skin, but leave
the eyes and lips clear.
Finally, I backed off on your Blur to make things a little more natural.
The effect smooths out small textural details like pores and freckles,
but doesn't work on big things like the scar. BTW, if you crank up the
blur, you get a cool cartoon or watercolor effect.
I hope that answers your question.
Les Stuck
N870177trythis = SFileIn("./870177trythis.jpg", "Auto", 0, 0,
"v1.1", "0", "");
Blur1 = Blur(N870177trythis, 20, xPixels/GetDefaultAspect(),
0, "gauss", xFilter, "rgba");
Saturation1 = Saturation(N870177trythis, 4);
Expand1 = Expand(Saturation1, 0.9, 0, 0, 0, 1, rHi, rHi, 1);
SwitchMatte1 = SwitchMatte(Blur1, Expand1, 1, "R", 1, 0);
Over1 = Over(SwitchMatte1, N870177trythis, 1, 0, 0);
// User Interface settings
SetKey(
"nodeView.Blur1.t", "0",
"nodeView.Blur1.x", "80.04309",
"nodeView.Blur1.y", "259",
"nodeView.Expand1.t", "0",
"nodeView.Expand1.x", "200.75",
"nodeView.Expand1.y", "213.25",
"nodeView.N870177trythis.t", "1",
"nodeView.N870177trythis.tnChannel", "0",
"nodeView.N870177trythis.tnTime", "1",
"nodeView.N870177trythis.tnVisible", "1",
"nodeView.N870177trythis.x", "183.043091",
"nodeView.N870177trythis.y", "401.2044",
"nodeView.Over1.t", "0",
"nodeView.Over1.x", "378.5",
"nodeView.Over1.y", "69.25",
"nodeView.Saturation1.t", "0",
"nodeView.Saturation1.x", "195.043091",
"nodeView.Saturation1.y", "259",
"nodeView.SwitchMatte1.t", "0",
"nodeView.SwitchMatte1.x", "65.79309",
"nodeView.SwitchMatte1.y", "153"
);
You forgot the Over node at the end, which combines blurred skin with clear BG.
Looking at the alpha channel of the SwitchMatte node, I see that the matte
is not very good, so I inserted an Expand node to push up the skin, but leave
the eyes and lips clear.
Finally, I backed off on your Blur to make things a little more natural.
The effect smooths out small textural details like pores and freckles,
but doesn't work on big things like the scar. BTW, if you crank up the
blur, you get a cool cartoon or watercolor effect.
I hope that answers your question.
Les Stuck
N870177trythis = SFileIn("./870177trythis.jpg", "Auto", 0, 0,
"v1.1", "0", "");
Blur1 = Blur(N870177trythis, 20, xPixels/GetDefaultAspect(),
0, "gauss", xFilter, "rgba");
Saturation1 = Saturation(N870177trythis, 4);
Expand1 = Expand(Saturation1, 0.9, 0, 0, 0, 1, rHi, rHi, 1);
SwitchMatte1 = SwitchMatte(Blur1, Expand1, 1, "R", 1, 0);
Over1 = Over(SwitchMatte1, N870177trythis, 1, 0, 0);
// User Interface settings
SetKey(
"nodeView.Blur1.t", "0",
"nodeView.Blur1.x", "80.04309",
"nodeView.Blur1.y", "259",
"nodeView.Expand1.t", "0",
"nodeView.Expand1.x", "200.75",
"nodeView.Expand1.y", "213.25",
"nodeView.N870177trythis.t", "1",
"nodeView.N870177trythis.tnChannel", "0",
"nodeView.N870177trythis.tnTime", "1",
"nodeView.N870177trythis.tnVisible", "1",
"nodeView.N870177trythis.x", "183.043091",
"nodeView.N870177trythis.y", "401.2044",
"nodeView.Over1.t", "0",
"nodeView.Over1.x", "378.5",
"nodeView.Over1.y", "69.25",
"nodeView.Saturation1.t", "0",
"nodeView.Saturation1.x", "195.043091",
"nodeView.Saturation1.y", "259",
"nodeView.SwitchMatte1.t", "0",
"nodeView.SwitchMatte1.x", "65.79309",
"nodeView.SwitchMatte1.y", "153"
);
Posted on Dec 24, 2010 7:05 AM