Hello everyone,
I’ve made a script that exports materials from a shading scene then imports and assigns the materials to alembics in a lighting scene. The only problem was it didn’t bring in the V-Ray displacement groups! So, instead of writing a script that exports and connects those displacement groups to their proper materials, I’d like to export a shading network by selecting it’s highest node in the network (the place2dTexture node), then select the rest of the network from there, and finally export that selection .
My big problem with solving this issue is I’m not quite sure what commands to use to select the rest of the network once I have the place2dTexture node selected. I usually use pickWalk when I want to move around a selection, but that doesn’t work in this case (as far as I know). I’ve attached an image to help clarify my question. Thank you!
And here’s my code so far:
// select all "place2dTexture" utilities
global proc SelectPlace2dUtilities()
{
string $nodesList[];
$nodesList = `ls -type "place2dTexture"`;
select -add $nodesList;
}