Difference between revisions of "GetSubstitutedMaterial"

From scripting
Jump to: navigation, search
(Created page with " proc string GetSubstitutedMaterial(string $Name){ //Author Nick Pisca 0001d 2007 string $FF[] = `listRelatives $Name`; string $GG[] = `listConnections $FF[0]`; string $HH...")
 
(No difference)

Latest revision as of 06:01, 22 April 2017

proc string GetSubstitutedMaterial(string $Name){
//Author Nick Pisca 0001d 2007
string $FF[] = `listRelatives $Name`;
string $GG[] = `listConnections $FF[0]`;
string $HH[] = `listConnections $GG[0]`;
return $HH[3];}
			
string $JJ = `GetSubstitutedMaterial nurbsSphere1` ;


More information on navigating shader nodes, read pages 133-134 in YSYT.