Skip to main content
Participant
June 8, 2022
Answered

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

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

This topic is closed to new replies. Start a new post to keep the conversation going.
paul24789863cruzCorrect 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()

 

2 replies

Participating Frequently
June 13, 2022

You need to do something like:

node.getAnnotationPropertyValueFromId("usages")

This returns an array of SDValueUsage objects.

 
Translate
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()

 

Translate