[Maya-Python] Re: how to load scene to maya using python

2009-12-17 Thread abstracted_dwaik
hello viasky,, try this code out import maya.cmds as mc import os def importFromDir(targetDir): files=os.listdir(targetDir) for eachFile in files: if eachFile.split(.)[-1]==ma: mc.file((targetDir+\

Re: [Maya-Python] pymel(node).listAttr(alias=True)

2009-12-17 Thread Paul Molodowitch
There was not, but there is now. Added 'getAlias' and 'setAlias' commands to the Attribute class. - Paul On Thu, Dec 17, 2009 at 7:27 AM, thirstydevil da...@thirstydevil.co.ukwrote: I'm was trying to get to the alias-name on my bendnode. Seems the only way to get to them is through

Re: [Maya-Python] pymel(node).listAttr(alias=True)

2009-12-17 Thread Chad Dombrova
i'll also be adding an alias flag to listAttr, as you suggest. -chad On Dec 17, 2009, at 10:36 AM, Paul Molodowitch wrote: There was not, but there is now. Added 'getAlias' and 'setAlias' commands to the Attribute class. - Paul On Thu, Dec 17, 2009 at 7:27 AM, thirstydevil

Re: [Maya-Python] pymel(node).listAttr(alias=True)

2009-12-17 Thread David Moulder
You pymel fellas are the best :)... Seriously! By the way... I'm getting on better with the documentation now guys. But quite often I'll see a method in the doc's written as getAllParents(*args, **kw) 1) I can never remember all the kwargs 2) I'm not always sure what kwargs are allowed. Are

[Maya-Python] hide selection not updating from Python

2009-12-17 Thread PixelMuncher
Hi all: I'm writing .py code to speed up isolateSelect. Almost everything is working. BUT, when I invert the selected faces and then toggle isolate select w/Python, Maya hide the newly selected faces. I can toggle the hiding of selected faces w/this: def pixl_isolateSelected(): curPanel

Re: [Maya-Python] Re: pyo instead of pyc

2009-12-17 Thread Chris G
Directories to recursively traverse (passing -l stops the recursive behavior) for sources are listed on the command line. If no arguments are given, the invocation is equivalent to -l sys.path so: mayapy -OO -m compileall E:\\ On Thu, Dec 17, 2009 at 4:33 AM, abstracted_dwaik