{"action":"created","issue":{"url":"https://api.github.com/repos/LumaPictures/pymel/issues/213","labels_url":"https://api.github.com/repos/LumaPictures/pymel/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/LumaPictures/pymel/issues/213/comments","events_url":"https://api.github.com/repos/LumaPictures/pymel/issues/213/events","html_url":"https://github.com/LumaPictures/pymel/issues/213","id":105497704,"number":213,"title":"Locators in PyMEL 1.0.1 don't have xForm methods","user":{"login":"elrond79","id":71800,"avatar_url":"https://avatars.githubusercontent.com/u/71800?v=3","gravatar_id":"","url":"https://api.github.com/users/elrond79","html_url":"https://github.com/elrond79","followers_url":"https://api.github.com/users/elrond79/followers","following_url":"https://api.github.com/users/elrond79/following{/other_user}","gists_url":"https://api.github.com/users/elrond79/gists{/gist_id}","starred_url":"https://api.github.com/users/elrond79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elrond79/subscriptions","organizations_url":"https://api.github.com/users/elrond79/orgs","repos_url":"https://api.github.com/users/elrond79/repos","events_url":"https://api.github.com/users/elrond79/events{/privacy}","received_events_url":"https://api.github.com/users/elrond79/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LumaPictures/pymel/labels/imported","name":"imported","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-09T01:11:24Z","updated_at":"2015-09-09T01:11:25Z","closed_at":null,"body":"_From [jspatr...@gmail.com](https://code.google.com/u/102457965070803366126/) on April 09, 2010 10:11:44_\n\nDescribe the problem. Locators don't seem to have the methods they should (setTranslation, \r\nsetParent, etc) What Version of Maya are you using? 2009x64 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Windows 7 64bit What Version of PyMEL are you using? 1.0.1 What is the expected output? What do you see instead? I expect to be able to call xForm methods on locators.  Here's the error:\r\n\r\n\\# Warning: 'parent' command only operates on transform nodes. To parent \r\nshapes, use the -s/shape flag. # \r\n\\# Warning: 'parent' command only operates on transform nodes. To parent \r\nshapes, use the -s/shape flag. # \r\n\\# Error: nt.Locator(u'myChar_r_armDistStartA_loc') has no attribute or \r\nmethod named 'setTranslation'\r\n\\# Traceback (most recent call last):\r\n\\#   File \"<maya console>\", line 25, in \\<module>\r\n\\#   File \"C:\\Users\\John\\Documents\\python\\pymel-\r\n1.0.1\\pymel\\core\\nodetypes.py\", line 1732, in __getattr__\r\n\\#     return super(GeometryShape,self).__getattr__(attr)\r\n\\#   File \"C:\\Users\\John\\Documents\\python\\pymel-\r\n1.0.1\\pymel\\core\\nodetypes.py\", line 301, in __getattr__\r\n\\#     raise AttributeError,\"&#37;r has no attribute or method named '&#37;s'\" &#37; \r\n(self, attr)\r\n\\# AttributeError: nt.Locator(u'myChar_r_armDistStartA_loc') has no \r\nattribute or method named 'setTranslation' # If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. See attached...it should reproduce the error in a new scene file Does maya.cmds exhibit the same problem? N/A Please provide any additional information below.\n\n**Attachment:** [pymelLocatorBug.py](http://code.google.com/p/pymel/issues/detail?id=178)\n\n_Original issue: http://code.google.com/p/pymel/issues/detail?id=178_"},"comment":{"url":"https://api.github.com/repos/LumaPictures/pymel/issues/comments/138744223","html_url":"https://github.com/LumaPictures/pymel/issues/213#issuecomment-138744223","issue_url":"https://api.github.com/repos/LumaPictures/pymel/issues/213","id":138744223,"user":{"login":"elrond79","id":71800,"avatar_url":"https://avatars.githubusercontent.com/u/71800?v=3","gravatar_id":"","url":"https://api.github.com/users/elrond79","html_url":"https://github.com/elrond79","followers_url":"https://api.github.com/users/elrond79/followers","following_url":"https://api.github.com/users/elrond79/following{/other_user}","gists_url":"https://api.github.com/users/elrond79/gists{/gist_id}","starred_url":"https://api.github.com/users/elrond79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elrond79/subscriptions","organizations_url":"https://api.github.com/users/elrond79/orgs","repos_url":"https://api.github.com/users/elrond79/repos","events_url":"https://api.github.com/users/elrond79/events{/privacy}","received_events_url":"https://api.github.com/users/elrond79/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T01:11:25Z","updated_at":"2015-09-09T01:11:25Z","body":"_From [chad...@gmail.com](https://code.google.com/u/101505156600271307269/) on April 10, 2010 16:21:52_\n\ni believe your problem is that you're calling getTranslation on the locator shape, not the transform:\r\n\r\nx = spaceLocator()\r\nx\r\n\\# Result: nt.Transform(u'locator2') # \r\nx.getTranslation()\r\n\\# Result: dt.Vector([0.0, 0.0, 0.0]) # \r\ns = x.getShape()\r\ns\r\n\\# Result: nt.Locator(u'locatorShape2') # \r\ns.getTranslation()\r\n\\# Error: nt.Locator(u'locatorShape2') has no attribute or method named 'getTranslation'\r\n\\# Traceback (most recent call last):\r\n\\#   File \"<maya console>\", line 1, in \\<module>\r\n\\#   File \"/Users/chad/Documents/dev/luma/python/thirdParty/pymel/pymel/core/nodetypes.py\", line 1732, in \r\n__getattr__\r\n\\#     return super(GeometryShape,self).__getattr__(attr)\r\n\\#   File \"/Users/chad/Documents/dev/luma/python/thirdParty/pymel/pymel/core/nodetypes.py\", line 301, in \r\n__getattr__\r\n\\#     raise AttributeError,\"%r has no attribute or method named '%s'\" % (self, attr)\r\n\\# AttributeError: nt.Locator(u'locatorShape2') has no attribute or method named 'getTranslation' #\n\n**Status:** Started  \n"}}