Thanks for the explanation, Chad. I was following the tutorial and I was totally confused. There's a few examples like: cam = ls(type='camera')[0] parent = cam.getParent() trans = parent.getTranslation() # <--- trans # Result: dt.Vector([28.0, 21.0, 28.0])
where I was trying to get dt.Vector and I was thinking there was a problem in my installation or something wrong. Thanks again, miguel. On Sun, Dec 27, 2009 at 7:41 PM, Chad Dombrova <chad...@gmail.com> wrote: > > sphere1, hist = polySphere(name='mySphere') > grp = group(sphere1) > sphere1 > # Result: group1|mySphere # > > > nothing has changed in his regard. from the beginning, autodesk chose to > deviate from standard python practice of using repr() to display results, > instead they use str(). this inevitably leads to confusion. here's how you > can get what you expect: > print repr(sphere1) > > this prints: > nt.Transform(u'group1|mySphere') > here's a shorthand for the same thing: > print `sphere1` > i need to clarify this in the tutorial. > -chad > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya