I think you may have two separate issues here. If you use createNode, rather than joint that should do the trick in terms of the parenting. Regarding the selection, what I often do is capture the current selection, then do a bunch of stuff, which may end up changing the user's selection, then restore the selection before I'm done.
-Judah On Fri, Apr 16, 2010 at 4:09 PM, shawnpatapoff <[email protected]> wrote: > Title says it all. I'm constantly clearing the selection when I create > joints through script so they don't get parented to the next joint I > create. Does anyone know of a way to stop maya from automatically > selecting an object when you create it via script? > > > Cheers, > Shawn > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
