Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking For The Location of MEL Scripts

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
noah1211football
7749 Views, 6 Replies

Looking For The Location of MEL Scripts

Hello,

 

I was watching a YouTube tutorial where someone goes into the Maya scripts and edits them. I attempted to do the same thing he did, but when I went to my scripts folder, it was empty. Any ideas as to how I can get access to these scripts?

 

https://www.youtube.com/watch?v=LHahY9Wm3ws At Around 4 minutes is where he accesses the script

Problem I am having is in the uploaded image

 

I am running Maya 2019 student edition on OSX 10.12.4Screen Shot 2019-04-01 at 11.51.55 AM.png

6 REPLIES 6
Message 2 of 7

The location shown in the video is in Maya's scripts folder, not your personal scripts folder.  Do not edit scripts in this folder!!! In the video he makes a backup copy of the file by renaming it, but a better way to do it is to make a copy of the file and place it in your personal scripts folder.  So for the specific example shown in the video, you would find the following file:

/Applications/Autodesk/maya2019/scripts/others/flowAlongCurves.mel

Copy this file and paste it into the location you were looking at before:

/Users/<username>/Library/Preferences/Autodesk/maya/2019/scripts/flowAlongCurves.mel

Then you can edit the copied version.  Maya will use the version in your personal folder.  You can change it freely without worrying about messing up any of the files installed by Maya.

(P.S.  Apologies if the paths above are not 100% correct.  I don't have OS X, so I'm basing this information off the following links: https://knowledge.autodesk.com/support/maya/troubleshooting/caas/CloudHelp/cloudhelp/2019/ENU/Instal...

https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Maya-Cus... )

Message 3 of 7

Thank you, those are good suggestions, but when I follow that folder path I
see no scripts folder at all. Any idea why this would be the cases? The
scripts have to be on my machine somewhere right?
Message 4 of 7

Here's how you can find for sure where the script is coming from.  Run the following MEL command:

whatIs "flowAlongCurves";

It should tell you the script path.  On my machine (Maya 2018 on Windows) it says:

// Result: Script found in: C:/Program Files/Autodesk/Maya2018/scripts/others/flowAlongCurves.mel // 
Message 5 of 7

I ran the script and got this result // Result: Script found in:
/Applications/Autodesk/maya2019/Maya.app/Contents/scripts/others/flowAlongCurves.mel
//

I followed the path, but there is no folder title "maya.app" in the path.
It seems really weird to me. It should be there, it just isn't. Could it be
hidden or something like that? The script has to be on my machine
somewhere. I have even done a specific search for the name of the script
and nothing shows up 😕

Perhaps if I cannot rectify this you could send me a copy of the script and
I could just save it as a custom one.
Message 6 of 7

I found this forum post that might be helpful: https://forums.autodesk.com/t5/maya-forum/where-is-the-directory-applications-autodesk-maya2011-maya...

It says that "Maya.app" looks like a file not a folder.  The next reply says to right-click on the Maya application file, and choose "Show Package Contents".

Message 7 of 7

That does the trick! Thanks a million

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report