Excluding attributes from reference locking only affects which attributes 
don't get locked when you lock a referenced file already in your scene.

If you right click on a reference in the reference editor and select 
Reference > Lock Reference, it locks (almost) all attributes for the nodes 
in that reference file. overwriting getLockReferenceExcludedAttributes 
tells maya not to lock certain attributes when performing a reference lock, 
and *does not* affect attributes that were locked in the referenced file's 
original scene.

>From the docs:
If you reference a file that has locked attributes, they remain locked 
regardless of whether or not you turn on Lock when you create the reference.

On Wednesday, December 5, 2012 10:10:31 PM UTC-8, Berg Jones wrote:
>
> I want to free translateX (example) from being locked when referenced so 
> that I can show/hide TX in the CB with setAttr while it is referenced. I 
> get the following error
>
>
> # Error: RuntimeError: file <maya console> line 15: setAttr: The attribute 
> 'ref02:nurbsSphere1.translateX' is from a referenced file, and cannot be 
> unlocked. #
>
>
> I followed *the 
> directions*<http://download.autodesk.com/global/docs/maya2013/en_us/index.html?url=files/GUID-B1524E77-A4B2-4F49-8116-129A1B64F20B.htm,topicNumber=d30e129454>on
>  how to ovewrite the getLockReferenceExcludedNodeTypes mel proc but it 
> doesnt do anything. However, if I query that proc I do get what I changed 
> it to (translateX, translate, Translate, tx) but it has no affect on me 
> being able to hide/unhide translate X
>
>
> http://pastebin.com/2NHnxTy8
>
>
> There are very few google hits on this procedure... :(

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to