Maybe I didn’t query the forum properly, but just in case I actually did, I will ask the question anyway.
How do you change the icon of a NodeCategory? I have my packages nested under a specific custom category. At the moment it seems to be picking up one of the icons from the latest nodes added and using it as the icon for the category. What is the proper way to override this behaviour.
Please note that my Project name does not include the category as the Namespace but I am defining it explicitly using the Node category attribute i.e [NodeCategory("MyCategory.MyNstedPackage")]
Thanks for the prompt reply. I don’t think this wiki page covers what I am asking for. Would you care to elaborate if you have more experience on the matter.
What I’m aiming for is to control the NodeCategory icon.
Nope… This does not cut it. I’m pretty confident that I can read, understand and use instructions.
I am not using the GUIDs to name my individual node resources as the article states, but I am using the Namespace.Class.Large.png and Namespace.Class.Small.png template and they work fine.
Even if I remove all my resources leave only the DefaultCustomNode.Large.png and DefaultCustomNode.Small resources, and debug the catefory icon still doesn’t appear.
My guess is that it has to do with my assembly naming. As I mentioned previously the name of the category where these custom nodes are nested is not part of the assembly name or a corresponding namespace. Also it includes special characters.
I’ve found a workaround to this. I’m not sure whether this is the correct way to do it, but it seems to be working on @erfajo’s library as well, (judging from his previous snapshot)
So, apparently the category picks up the icon from the first class in the library. See attached.
This is something that works for me at the moment, but I am eager to find out the proper way of doing this.
I didn’t explain it properly.
It picks up the icon of the first in alphabetical order node/class visible to dynamo.so if I were to rename the first node to “What” instead of “About” it would pick up the icon from the ColorCompare node.
Thanks for all the help regardless, the snapshot of your library gave me the idea for the workaround.