Hey everyone I am very new to coding and I am trying to select the surface material based off the section of the shadingEngine (shader group)
//selects all of the shading groups in the scene
string $selShaderGroups = `ls -type shadingEngine`;
the part that I am trying to figure out is how to select the material connected to each shader group. This code gets me close but also includes which geometry is connected.
string $selMaterials[] = `listConnections -d 0 -s 1 -p 0 $selShaderGroups`;
