Copy link to clipboard
Copied
How do you get the usage type of an output node via python?
You need to do something like:
node.getAnnotationPropertyValueFromId("usages")
This returns an array of SDValueUsage objects.
That was exaclty what I needed. Thank you.
I was able to get the name using...
Node.getAnnotationPropertyValueFromId("usages").getItem(0).get().getName()
Copy link to clipboard
Copied
You need to do something like:
node.getAnnotationPropertyValueFromId("usages")
This returns an array of SDValueUsage objects.
Copy link to clipboard
Copied
That was exaclty what I needed. Thank you.
I was able to get the name using...
Node.getAnnotationPropertyValueFromId("usages").getItem(0).get().getName()