Maya API for a game editor


#1

Hello. Iโ€™m making a maya plugin that exports some custom meshes and materials from the scene. I want to make some more attributes for the objects in the scene, atributes that I can edit with a MEL interface GUI. For example I select a mesh and I want it to be a โ€œchestโ€ in my game. I can do that in C++ in the API with the selection list and a custom vector with objects and custom data but I have no idea how to send that data to MEL so I can pick from there the propriety from a GUI system. Any idea ?


#2

To work with attributes on objects, there is no need to do it in C++. Maybe I misunderstood what you are trying to do, but if you can add any property from mel or better from python, read them and so on.


#3

Yes. I just found out about Custom attributes in the API. Works like a charm. Thanks :thumbsup: