"Daz to Maya" will not start in Maya
crispy1138
Posts: 3
Using Maya 2018, I click on the "Daz to Maya" menu created by the plugin, and consistently get the error and fail:
# Error: NameError: file <maya console> line 1: name 'mel' is not defined #
Happens in 2017 and 2020 as well. Anyone know a fix? I am not Maya scripting/mel/python expert. Thanks.
Post edited by Richard Haseltine on
Comments
Moved to Maya Discussion.
Same problem.
Bump.
Any takers? I know looking it up that this is a generic error typically meaning Maya thinks a Python script(which the plugin is) is a MEL script. But no real solution given for this specific case. Anyone who has seen and fixed this please chime in.
Same issue.
Hey. Go to MEL console (left bottom) and enter this "daztomaya" - after everything will work ;)
NOTE : Be sure activate your all FBX import plugins checked your plugin manager !
@bizdikpirt - Thanks for the reply. Typing "daztomaya" does work! But the menu (supposedly also the "daztomaya" command) still does not. All FBX etc. plugins are loaded as always for me. Very odd. I emailed Daz support, no reply.
UPDATE: I realized it works in the command line since it is set to MEL(not Python) by default. Making a shelf button as a Python command(the plugin is a Python script) has the same error. Set the button to be a MEL command works. And of course toggling the command line to PYTHON creates the same error.
So the plugin is a Python script that needs to be run as a MEL command. The menu is running it as a Python command(since it is a Python script?)
I do not see a way to change how the menu command is run to MEL. Ideas?
Only about 4 people have this problem?
What do we have in common?
I confirm the advice of running "daztomaya" as a mel script from a shelf or a script editor works.
G
In cases like this, I would suggest looking at the Maya end - it is the most customiseable software I know, and after long usage that includes moving windows arround, installing scripts and what not, needs a "soft reboot."
I mean, of course, deleting all the user prefs and running it again, as if fresh.
Solve a lot of issues, and very fast to do.
If you are not familiar with the method, please check google for it, so you don't mess up your Maya (though it's unlikely).
Oh, I love Maya...
Daz character is not importing into Maya from Daz Studio.
It just reads: # Error: RuntimeError: file C:/Users/Owner/Documents/maya/plug-ins/DazToMaya_Files\d2m.py line 1145: Error occurred during execution of MEL script
line 1: line 1: Cannot find procedure "FBXImportMode".
Does anyone know if I need an execution line for the script and if not, then what?
Had the same problem as the thread opener, in my case, turns out I had the older version of DaztoMaya installed and it was that one that loaded in Maya menu which couldn't be open. It was put in my Maya 2020/plug-ins folder and the update put DaztoMaya.py in the ~Documents/Maya/plug-ins instead. So you have to turn off the older DaztoMaya before you can turn on the other one which is in the ~Documents/Maya/plug-ins... or better yet, delete the older version from ~maya 20xx/plug-ins.
Everything should be fine afterward if your problem happen to be the same as mine.