Dashboard_avatar
Dec 14, 2008
Post id: 285893 Report Item

hello.

after locking and hiding attributes in the channel editor.
how does one unlock and unhide attributes?

the "show all" command does not seem to do this.


Dashboard_avatar
Dec 31, 2008
Post id: 285894 Report Item

Window -> General Editors -> Channel Control

Under the 'Keyable' tab move the hidden attributes you want (highlight and click << Move button) from 'Nonkeyable' to 'Keyable' and they will show up again in your channel. Same goes for locked attributes.

4984_544950483145_44407801_32137274_5087190_n
Jan 18, 2009
Post id: 285895 Report Item

This simple scriptlet unlocks and unhides the default transform attributes (translate, rotate, scale)

CODE
global proc msAttrUnlockUnhide_all()
{
string $selectedObj[] = `ls -sl`;
for($obj in $selectedObj)
{
string $attrList[] = `listAttr -v -l`;                // Get attributes that are visibily locked
for($attribute in $attrList)
{
setAttr -k 1 -l 0 ($obj + "." + $attribute);    // Unhide and unlock attribute
}
/*
Set Default trans, rot, and scale attribute to unhidden and unlocked
*/
setAttr -k 1 ($obj + ".tx");
setAttr -l 0 ($obj + ".tx");
setAttr -k 1 ($obj + ".ty");
setAttr -l 0 ($obj + ".ty");
setAttr -k 1 ($obj + ".tz");
setAttr -l 0 ($obj + ".tz");

setAttr -k 1 ($obj + ".sx");
setAttr -l 0 ($obj + ".sx");
setAttr -k 1 ($obj + ".sy");
setAttr -l 0 ($obj + ".sy");
setAttr -k 1 ($obj + ".sz");
setAttr -l 0 ($obj + ".sz");

setAttr -k 1 ($obj + ".rx");
setAttr -l 0 ($obj + ".rx");
setAttr -k 1 ($obj + ".ry");
setAttr -l 0 ($obj + ".ry");
setAttr -k 1 ($obj + ".rz");
setAttr -l 0 ($obj + ".rz");
        
clear $attrList;
    
$attrList = `listAttr -ud`;                // Get attributes that are userdefined, hidden or not
for($attribute in $attrList)
{
setAttr -k 1 -l 0 ($obj + "." + $attribute);    // Unhide and unlock attribute
}
clear $attrList;
}    
    
clear  $selectedObj;
}

msAttrUnlockUnhide_all;