Hi everyone!
I have faced problem exporting ANY existing ship model that was earlier imported by published tool (import io_pdx_mesh;reload(io_pdx_mesh))
after choosing the material in Hypershade and clicking add 'shader' attribute in PDXExport below error occured:
pdx_export_ui.mel line 453: The -en/-enumName flag is only valid with attributes of type enum.
please see below screen:
If any one new how to fix it quickly, will be very glad.
problem in strings:
line: if ( !`objExists ($root + ".shader")` )
addAttr -ln "shader" -at "enum" -en ($tmp) ($root);
else
line 453: addAttr -e -at "enum" -en ($tmp) ($root + ".shader");
For what purpose we are trying to add enum attribute for not enum type objects, i do not know...
Note: Adding new enum attribute to existing (imported) material does not fix problem,
The only way to fix that i have found, is to create new material with attribute enum...
Yes, of course if You use JoroDox--> collada--->Maya there is no problem, but there is big loss of data.
The same using OGRE, to big loss.
Your HELP is needed...
I have faced problem exporting ANY existing ship model that was earlier imported by published tool (import io_pdx_mesh;reload(io_pdx_mesh))
after choosing the material in Hypershade and clicking add 'shader' attribute in PDXExport below error occured:
pdx_export_ui.mel line 453: The -en/-enumName flag is only valid with attributes of type enum.
please see below screen:

If any one new how to fix it quickly, will be very glad.
problem in strings:
line: if ( !`objExists ($root + ".shader")` )
addAttr -ln "shader" -at "enum" -en ($tmp) ($root);
else
line 453: addAttr -e -at "enum" -en ($tmp) ($root + ".shader");
For what purpose we are trying to add enum attribute for not enum type objects, i do not know...
Note: Adding new enum attribute to existing (imported) material does not fix problem,
The only way to fix that i have found, is to create new material with attribute enum...
Yes, of course if You use JoroDox--> collada--->Maya there is no problem, but there is big loss of data.
The same using OGRE, to big loss.
Your HELP is needed...