Getting Reference Node's namespace


#1

Hi guys!

Is there a way to get the reference node’s namespace found in the attribute editor using mel?

Thanks in advance!

Edit:
My scenario is that I have multiple characters referenced in my scene but I wanted to display the namespace of some specific characters on my textScrollList/


#2

If you know the name of the reference node you can use “referenceQuery” to get the namespace.

referenceQuery -namespace “xxRN”;

where “xxRN” is the name of the reference node.

David


#3

Wait… what?! I did’nt notice there was a namespace flag for referenceQuery. It wasn’t even in the Maya help so I didn’t notice. I even came up with a long script just to get the namespaces.

BTW thanks man for the help!