can anyone tell me how to create a custom node (perhaps with a custom icon) with mel? I'm using group notes in the Outliner, but i think there must be a more elegant way to store data from a mel script into a scene file. (I couldn't find the info in the manual!)
BTW: How to change the icon?
I'm relatively new in Maya but experienced with programming.
Thank you. Allways good to know if someting won't work!
I'm still looking for the best way to store data (some kB - not only some attributes) into the scene file (.mb). The data should survive (open/save) even when the MEL - script is absent. Any ideas?
you might want to create a BlindData Node and store your information in it. But this node will be destroyer with a "File > New" operation.
Also I would suggest that you might want to use the API to create a custom node and in maya 4.5 you can create custome nodes that are not deletable as well (there is a new lock property I do not know if you have access to it using MEL).
I like the data to stay within the mb-File so "File > New" should destroy it!
The project I work for (a film school diploma project) currently is produced on Maya 4.0. I think I can work with unknown nodes, and in the future I plan to use the API for bigger projects than 1 day hacks. (I'm not planning to code UI-elements any more without a UI-Editor!
you might want to investigate a fileSciptNode (mmm not sure about the correct command do not have maya in front of me) but you can run a script thats create the nodes everytime you open a file and get you value from attribute in the scene that you are opening or an external file. you could create a scriptjob and put it in your userPrefs.mel file to create a custom setup evey time you have a file new event.
Just thinking out loud. Let me know if I may help some how.