Last active
July 23, 2017 20:26
-
-
Save JustinPedersen/e49a6d73d8d5ea328fe50d965d5991b5 to your computer and use it in GitHub Desktop.
Standard Divider Proc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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