{"action":"opened","issue":{"url":"https://api.github.com/repos/LumaPictures/pymel/issues/333","labels_url":"https://api.github.com/repos/LumaPictures/pymel/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/LumaPictures/pymel/issues/333/comments","events_url":"https://api.github.com/repos/LumaPictures/pymel/issues/333/events","html_url":"https://github.com/LumaPictures/pymel/issues/333","id":105643217,"number":333,"title":"Locked node attributes are able to be unlocked, going against the definition of locked nodes.","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":0,"created_at":"2015-09-09T17:12:44Z","updated_at":"2015-09-09T17:12:44Z","closed_at":null,"body":"_From [deadper...@gmail.com](https://code.google.com/u/114990235769346620249/) on May 09, 2013 12:04:12_\n\nDescribe the problem. Locked node attributes are able to be unlocked using PyMEL, going against the definition of locked nodes and inconsistent with maya.cmds. What Version of Maya are you using? Maya 2013 x64 Service Pack 2 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.4 What is the expected output? What do you see instead? 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.\r\nimport pymel.core as pm\r\nobj = pm.polyCube()[0]\r\nobj.v.lock()\r\nobj.lock()\r\nobj.v.unlock()\r\n\\# Allows the attribute to be unlocked, going against the definition of a locked node. # Does maya.cmds exhibit the same problem? #works as expected in maya.cmds\r\nimport maya.cmds as cmds\r\nobj = cmds.polyCube()[0]\r\ncmds.setAttr(obj + '.v', lock=True)\r\ncmds.lockNode(obj, lock=True)\r\ncmds.setAttr(obj + 'v', lock=False)\r\n\\# RuntimeError: setAttr: Attribute 'pCube1.visibility' is from a locked node, so it cannot be unlocked. # Please provide any additional information below. Maya's definition of a locked node:\r\n(from http://download.autodesk.com/global/docs/maya2013/en_us/CommandsPython/lockNode.html )\r\nLocks or unlocks one or more dependency nodes. A locked node is restricted in the following ways:\r\nIt may not be deleted.\r\nIt may not be renamed.\r\nIts parenting may not be changed.\r\nAttributes may not be added to or removed from it.\r\n**_Locked attributes may not be unlocked._**\r\nUnlocked attributes may not be locked.\r\n\r\nNote that an unlocked attribute of a locked node may still have its value set, or connections to it made or broken.\n\n_Original issue: http://code.google.com/p/pymel/issues/detail?id=300_"}}