Skip to content

Instantly share code, notes, and snippets.

@JustinPedersen
Last active July 23, 2017 20:26
Show Gist options
  • Save JustinPedersen/e49a6d73d8d5ea328fe50d965d5991b5 to your computer and use it in GitHub Desktop.
Save JustinPedersen/e49a6d73d8d5ea328fe50d965d5991b5 to your computer and use it in GitHub Desktop.
Standard Divider Proc
proc StandardDivider(){
string $Selection[] = `ls -sl`;
$selSize = size($Selection);
if($selSize == 0){
warning "please Select at least one control";
}else{
for ($Attrs in $Selection){
string $AtrEx[] = `listAttr - ud`;
$AttrNum = size($AtrEx);
float $num = $AttrNum;
string $AttrName = ("Divider" + $num);
addAttr -ln $AttrName -nn "__________" -at "double" $Attrs;
setAttr -keyable true -lock true ( $Attrs + "." + $AttrName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment