aboutsummaryrefslogtreecommitdiff
path: root/scripts/shaveVrayPostRender.mel
blob: a34bae082d220bce37306b86607ac52dc37f83c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962

global proc shaveVrayPostRender()
{
	//global string $shaveVrayOldPostRender;
	//execute original stuff
	//we do not need to to this as far we chained attributes
	//if($shaveVrayOldPostRender != "")
	//	eval $shaveVrayOldPostRender;
	
	if(`whatIs shaveNode` != "Unknown")
	{
		string	$shaveHairShapes[] = `ls -type shaveHair`;
		if (size($shaveHairShapes) > 0) 
		{
			shaveRender -renderEnd;
		
			//all shaders we created on pre-render step 
			//shaveVrayShader -delete -all;
		}
	}
}