1
Substance Automation Toolkit - Discussions - Connecting specific output pin from PBR base material node
on: April 03, 2021, 01:51:39 am
I'm trying to insert a compnode into an existing SBS between a PBR base material node and an output node (in this case a base color output node), but I'm having a really hard time figuring out the exact syntax to connect a node to the "Base Color" output pin on the PBR base material node. I can see from the docs that I need to set the "aLeftNodeOutput" parameter on the "ConnectNodes" function, but I can't figure out exactly what to put there.

the docs say that I should be using the "Identifier of the output of the left node", but I'm not sure how to get that. I've tried going through the list of "mCompOutputs" of the PBR node, but uisng the mUID values of those outputs didn't work
anyone have any luck trying to do this?
Code: [Select]
aGraph.connectNodes(aLeftNode = PBRNode, aRightNode = myNewInsertedNode, aLeftNodeOutput = ??? )

the docs say that I should be using the "Identifier of the output of the left node", but I'm not sure how to get that. I've tried going through the list of "mCompOutputs" of the PBR node, but uisng the mUID values of those outputs didn't work
anyone have any luck trying to do this?