Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Crest Christopher
The script calls to be executed as such; Superscript.ui() ? AK Eric wrote: tl;dnr this whole thread. But you'd need to: import SuperScript.myModule SuperScript.myModule.myFunc() That's executing the myFunc function in the my myModule.py module living under /SuperScript dir. x:/../../python

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread AK Eric
tl;dnr this whole thread. But you'd need to: import SuperScript.myModule SuperScript.myModule.myFunc() That's executing the myFunc function in the my myModule.py module living under /SuperScript dir. x:/../../pythonscripts/SuperScript/myModule.py Generally, I don't often put any code in the __

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Christopher.
>From what I know, one should typically encapsulate MEL script in a GlobalProc, then that name of the GlobalProc is run. In this case with this script I don't know what it is needed to run, for this badly written script. I do believe if you want, you can learn how to script fast, if you want t

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Christopher.
X:\...\...\pythonscripts\ That is the path I have in my Maya Environment file, in that path I have for example a script X:\...\...\pythonscripts\SuperScript\ In that sub-folder called SuperScript I have the __init__.py file when I go to execute the command that needs to be executed for the scr

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Crest Christopher
The script can't be renamed anything but rotateProjection or it doesn't matter ? Justin Israel wrote: On Sun, 25 Oct 2015 3:35 AM Christopher. > wrote: I added the source command, and I used the globalProc within the script to execute the script bu

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Justin Israel
On Sun, 25 Oct 2015 3:35 AM Christopher. wrote: I added the source command, and I used the globalProc within the script to execute the script but my question is; shouldn't the globalproc encapsulate the entire script ? No The first globalProc in the script is called rotateProjection, if I execu

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Justin Israel
On Sun, 25 Oct 2015 4:10 AM Christopher. wrote: Justin the __init__.py file should be in the location of the rest of the python scripts for the script package so if I have the script in a folder along with the __init__.py file, Maya Environment variable can traverse though the directories \ folde

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Christopher.
Justin the __init__.py file should be in the location of the rest of the python scripts for the script package so if I have the script in a folder along with the __init__.py file, Maya Environment variable can traverse though the directories \ folders, correct ? I can't understand, I have other

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Christopher.
I added the source command, and I used the globalProc within the script to execute the script but my question is; shouldn't the globalproc encapsulate the entire script ? The first globalProc in the script is called rotateProjection, if I execute rotateProjection, I get the typical *Cannot find

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Carlos Rico
Paste in Script Editor and execute. I think it is the only why taking into account how the script is written. If you want to run it with a function name I guess it has to be rewritten to support that. *Carlos Rico Adega*- LinkedI