Skip to main content
Participant
Jun 8, 2022 11:45 PM UTC
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
Jun 13, 2022 11:52 PM UTC

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
Jun 13, 2022 9:57 AM UTC

You need to do something like:

node.getAnnotationPropertyValueFromId("usages")

This returns an array of SDValueUsage objects.

 
Translate
paul24789863cruzAuthorCorrect answer
Participant
Jun 13, 2022 11:52 PM UTC

That was exaclty what I needed.  Thank you.

I was able to get the name using...

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

 

Translate