Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Jun 08, 2022 Jun 08, 2022

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

TOPICS
How to , Scripting
246
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Jun 13, 2022 Jun 13, 2022

You need to do something like:

node.getAnnotationPropertyValueFromId("usages")

This returns an array of SDValueUsage objects.

 
Translate
Community Beginner , Jun 13, 2022 Jun 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
Adobe Employee ,
Jun 13, 2022 Jun 13, 2022

You need to do something like:

node.getAnnotationPropertyValueFromId("usages")

This returns an array of SDValueUsage objects.

 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 13, 2022 Jun 13, 2022
LATEST

That was exaclty what I needed.  Thank you.

I was able to get the name using...

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines