![]() It searches for a Python script at the same locations where MEL The pySource command is equivalent to the MEL command source. Is working and you can execute Python code from within Maya. If you have a look at the Output Window (or the console) you should see To execute this line hit Ctrl+Enter or the Enter key on the numpad. (this assumes you have successfully installed (and loaded) the Maya Python Now launch Maya, open the MEL Script Editor and enter: This is the same location where you would put MEL scripts. Stick it into your Maya directory under maya//scripts. So write a file helloworld1.py with the above contents and # helloworld1.py: The very first Hello World Python script for Maya print "Hello World!"īut at least you can use this script to test your Python plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |