Greetings all!
We have a couple of models that start in Maya in which we’d like to tag specific model components with some dynamic properties that range across a large set of options. In general, we have been using the egg-object-type tagging technique in Maya to accomplish goals like this: we define a new egg-object-type, add it to our .mel script that can tag Maya groups (using the ‘addAttr’ command), then add the necessary transformation to our .PRC file to cause the models imported with the flag to have sections of their entries substituted appropriately.
The issue we have now is that with the wide range of possible values for our new property, we’ll need to add dozens of egg-object-types to allow for all of them. Ideally, I’d like to skip the egg-object-type step and use Maya to tag a group in such a way that it is output containing the " key {value}" entry documented in the egg syntax manual. Unfortunately, I’m very new to .mel scripting; I’m afraid I have no idea how to make this happen.
Does anyone know what the code would look like to apply this kind of variable tag such that maya2egg will respect it and output a " key {value}" entry? Optionally, some information to get around my knowledge block could also work; if I better understood the ‘addAttr’ command in mel, I could probably cook up a script to do what we need.
Any help on this front would be greatly appreciated!
Thanks,
Mark