First off, returnRootsOnly is forced on, because maya.cmds.duplicate does not return full paths, so the names it returns for children are non-unique, and therefore pretty useless.
As for getChildren - basically, it takes the same flags as listRelatives, since that's what it uses under the hood. I committed a change to the pymel trunk that makes a note of this for this method, and a few similar ones. One of the milestones we'd like to hit for the next big pymel release is an upgrade of the docs; a full listing of all flags for all functions might be tough, though, as it would be difficult to add this information in any sort of automated way for methods that essentially wrap others functions / methods, and simply pass the kwargs on to the underlying function.... and it would be a fair amount of work to do this manually... - Paul On Sat, Aug 7, 2010 at 3:16 PM, Marcus Ottosson <[email protected]>wrote: > Hi all, > > A question regarding PyMel. Kinda new to PyMel, but working through > the Modular Rigging Series from 3DBuzz and got to a section where the > pm.duplicate isn't returning the children of whatever it is > duplicating, only the parent. I need to put the children of my copied > group into another variable and do so using getChildren(). However, I > fail to find what flag to put into it that would include the hierarchy > below the copy into my variable. > > What would be interesting is to find some kind of listing of all the > available flags for each individual method or function, like the ones > in the maya docs? > > Thanks for any help, > Marcus > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
