arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

Add support for shader output property in ndrArnold parser

Open frenchdog opened this issue 4 years ago • 0 comments

Describe the feature you'd like Ability to get information about an Arnold node output when querying an SdrShaderNode.

Describe the solution you'd like Since an Arnold node output does not have an explicit name, calling NdrNode::GetOutputNames() would return a vector with only one "out" string. Calling SdrShaderNode::GetShaderOutput("out") would return a valid SdrShaderProperty. Such property would give information like its type and if it is an array.

Additional context Such feature would allow to write generic code for applications using the NdrDiscoveryPlugin mechanism to create shader nodes.

frenchdog avatar Apr 17 '21 00:04 frenchdog