What Shawn is told is the goodway but make sure you have __init__.py in your folder
On Tue, Nov 4, 2008 at 7:28 PM, Shawn Patapoff <[EMAIL PROTECTED]>wrote: > Python uses import, and reload. > > Sooo, if your script 'myScript.py' is in your scripts path you need to > import it: > import myScript > > then call a function in the script: > myScript.myFunc() > > If you're editing scripts, you need to reload them to get any changes. > > Hope that helps, > Cheers > > > On Mon, Nov 3, 2008 at 6:42 PM, Beau Garcia <[EMAIL PROTECTED]> wrote: > >> Hi, >> Sorry to ask such a basic question, but basically i want to source and run >> a externally stored python script. Similarly to using "source melScript.mel; >> melScript;" commands in Mel. Ive tried doing this by saving the .py file as >> the same name as the main function used and then placing it in a scripts >> folder. Then after re-loading maya, I tried to run the function name , but >> no luck. Any help would be great. Thanks >> >> Beau >> >> >> > > > > -- സ്നേഹിക്കയില്ല ഞാന് നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു തത്വശാസ്ത്രത്തെയും --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
