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
