change the icon of a development node using maya python api

change the icon of a development node using maya python api

Anonymous
Not applicable
1,216 Views
1 Reply
Message 1 of 2

change the icon of a development node using maya python api

Anonymous
Not applicable

I am developing a node using Maya Python api.
However, I want to know if I can change the icon of the developed node when it receives a certain input value.

And I want to change the icon of the node in the outliner.

0 Likes
1,217 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hi psh845

 

You can add icons for custom nodes by creating correctly named images in the XBMLANGPATH.

 

For example if your node is called MyNode, create an icon called MyNode.png and an icon called out_MyNode.png (For outliner) and put them in any folder which is in your XBMLANGPATH. You can see those folders by typing:

 

getenv XBMLANGPATH 

 

in the script editor

 

Hope it helps

 

Mike