I cannot access quick help in the script editor. Nothing happens in the script editor? I right click hold down and release but nothing happens. I get errors. Also where is the python command documentation i cannot find the maya.cmds reference documentation.
These are the errors i get.
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/startup/scriptEditorPanel.mel line 1569: Type "help" for general information about the help command. //
// Warning: file: C:/Program Files/Autodesk/Maya2018/scripts/startup/scriptEditorPanel.mel line 1668: No selected command to show Quick Help for. //
I cannot access quick help in the script editor. Nothing happens in the script editor? I right click hold down and release but nothing happens. I get errors. Also where is the python command documentation i cannot find the maya.cmds reference documentation.
These are the errors i get.
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/startup/scriptEditorPanel.mel line 1569: Type "help" for general information about the help command. //
// Warning: file: C:/Program Files/Autodesk/Maya2018/scripts/startup/scriptEditorPanel.mel line 1668: No selected command to show Quick Help for. //
The Quick Help system is very useful, but sometimes you need one more step to get to the good stuff.
MEL plays fast and loose with what is an object and what is a string. So these lines both do the same thing -- print the quick help for the polySphere command.
help polySphere;
help("polySphere");
In Python, the help command needs the string name of a command, like this:
maya.cmds.help("polySphere")
Or this way to query the string name from the command itself:
maya.cmds.help(maya.cmds.polySphere.__qualname__)
The right-click method to use Quick Help from the marking menu is intended for use in Mel only, but we can use it for python with an adjustment.
In MEL, select the name of the command, right-click-and-hold to raise the Marking Menu, then move the mouse down into the menu to select Quick Help. The Quick Help tab will open in the Script Editor, populated with the help information for the command.
Quick Help doesn't care about what language you're scripting in, it assumes it's all MEL. You can select any text you want to, then follow the same steps, and Quick Help will attempt to load help for whatever text you've selected. So for python, if you have code like 'maya.cmds.polySphere()', just select the word polySphere. Then by opening Quick Help with that selection, the help for polySphere will be loaded.
You can also load the Quick Help tab in the Script Editor's Command menu (Command -> Show quick help). Then you can type or paste the name of any command into the input box directly.
The Quick Help system is very useful, but sometimes you need one more step to get to the good stuff.
MEL plays fast and loose with what is an object and what is a string. So these lines both do the same thing -- print the quick help for the polySphere command.
help polySphere;
help("polySphere");
In Python, the help command needs the string name of a command, like this:
maya.cmds.help("polySphere")
Or this way to query the string name from the command itself:
maya.cmds.help(maya.cmds.polySphere.__qualname__)
The right-click method to use Quick Help from the marking menu is intended for use in Mel only, but we can use it for python with an adjustment.
In MEL, select the name of the command, right-click-and-hold to raise the Marking Menu, then move the mouse down into the menu to select Quick Help. The Quick Help tab will open in the Script Editor, populated with the help information for the command.
Quick Help doesn't care about what language you're scripting in, it assumes it's all MEL. You can select any text you want to, then follow the same steps, and Quick Help will attempt to load help for whatever text you've selected. So for python, if you have code like 'maya.cmds.polySphere()', just select the word polySphere. Then by opening Quick Help with that selection, the help for polySphere will be loaded.
You can also load the Quick Help tab in the Script Editor's Command menu (Command -> Show quick help). Then you can type or paste the name of any command into the input box directly.
Can't find what you're looking for? Ask the community or share your knowledge.