Skip to main content
Participant
June 8, 2022
Answered

How do you find the Usage of an output node. (basecolor, roughness, etc)

  • June 8, 2022
  • 1 reply
  • 330 views

How do you get the usage type of an output node via python?

This topic has been closed for replies.
Correct answer paul24789863cruz

That was exaclty what I needed.  Thank you.

I was able to get the name using...

Node.getAnnotationPropertyValueFromId("usages").getItem(0).get().getName()

 

1 reply

Participating Frequently
June 13, 2022

You need to do something like:

node.getAnnotationPropertyValueFromId("usages")

This returns an array of SDValueUsage objects.

 
paul24789863cruzAuthorCorrect answer
Participant
June 13, 2022

That was exaclty what I needed.  Thank you.

I was able to get the name using...

Node.getAnnotationPropertyValueFromId("usages").getItem(0).get().getName()