Chad,

I am a bit confused....

Could u just give me script with script filename to execute maya in
batch and create a sphere and save the file.

So that i will just copy the script and save it as prescribed filename
and then execute....

Ex:

Filename : xyz.py

import abc as xyz
...
...
...


On Apr 26, 10:18 pm, Chad Dombrova <[email protected]> wrote:
> one more thing: the example forgot to pass along sys.argv:
>
> > import pymel.core as pm
> > import sys
>
> > def main( *args ):
> >         print "Hello world!", args
>
> > if __name__ == "__main__":
> >     main(sys.argv[1:])
>
> sys.argv[0] is the path of the file being executed exactly how it was
> executed (i.e. it may look like "../../myfile.py" if that's the path that
> was passed to python), or if using "python -c" it will contain "-c".
>
> -chad

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to