Message 1 of 3
Mel script for locking selected attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, so I'm trying to write a simple script that allows me to just execute the "lock and hide" function to all selected attributes without me having to go through the menus.
Here's is my frankenscript. I'm not very familiar with mel at all so I'm not sure what the syntax or anything is supposed to look like. This is just copy and pasted with some adjustments.
string $array[] = `ls -sl`;
for ($item in $array)
{
setAttr ($item -lock true -keyable false -channelBox false);
}