PDA

View Full Version : Script Editor - Open & Source Script...



Erker
11-14-2006, 10:11 AM
Hi,
I wonder something. I don't understand it exactly. What is the Open(Load) Script command's function? What is the different from Source Script? :help:

laxman
11-14-2006, 11:17 AM
from what I know, sourcing a script ie:

source MJPolyTools.mel

will load the script into the memory. Its the same as loading a plugin in the plug-in manager. When you run the script by just typing in the file name it will execute the script.

Erker
11-16-2006, 03:59 PM
Yes, it is clearer now. So if i only want to open & edit script file i can use "Open Script".(Then execute) But if i want to execute my script file directly, i should use "Source Script", right? :p

laxman
11-17-2006, 03:37 PM
open is not a command as far as I can tell. When I type open its says procedure not recognized.

What happens is if you open maya, and run a script it keep it in the memory so when you run it again, it doesn't load it from the hard rive. So If you edit it after you ran it once, you need to update the script in the RAM by typing

source filename.mb.

Erker
11-17-2006, 03:55 PM
Sorry, I shouldn't said "Commands". Because I'm not speaking of MEL commands. I'm talking about "Open & Source Script" in the File menu. :eyeRoll

laxman
11-18-2006, 03:12 AM
oh, I didn't even realise there was an open script button, haha.

BTW, if you want less headaches, don't use maya for editing scripts, use Edit Plus or something similar, really saves a lot of time.