Skip to content

Instantly share code, notes, and snippets.

@JustinPedersen
Created September 1, 2017 11:09
Show Gist options
  • Save JustinPedersen/c78e7a75b19153f18b5ac9da975bf7c7 to your computer and use it in GitHub Desktop.
Save JustinPedersen/c78e7a75b19153f18b5ac9da975bf7c7 to your computer and use it in GitHub Desktop.
string $Win = "OutlinerDivider";
if ( `window -exists $Win` ) {
deleteUI $Win;
}
int $w = 80;
int $h = 40;
window -t $Win $Win;
frameLayout -l "Outliner Colour Divider creator";
rowColumnLayout -nc 4;
button -w $w -h $h -l "" -bgc 0 0.9 0.2 -c "Create($Colour = \"green\")" green;
button -w $w -h $h -l "" -bgc 0.8 1 0.6 -c "Create($Colour = \"lime\")" lime;
button -w $w -h $h -l "" -bgc 1 1 0.3 -c "Create($Colour = \"yellow\")" yellow;
button -w $w -h $h -l "" -bgc 1 0.8 0.2 -c "Create($Colour = \"orange\")" orange;
button -w $w -h $h -l "" -bgc 0 0.4 1 -c "Create($Colour = \"blue\")" blue;
button -w $w -h $h -l "" -bgc 1 0 0.3 -c "Create($Colour = \"red\")" red;
button -w $w -h $h -l "" -bgc 0.7 0.2 0.9 -c "Create($Colour = \"purple\")" purple;
button -w $w -h $h -l "" -bgc 1 0.6 0.9 -c "Create($Colour = \"pink\")" pink;
setParent ..;
columnLayout;
button -w 320 -h 30 -l "Custom Colour" -c CustomClr;
button -w 320 -h 30 -l "Default" -c Default;
showWindow $Win;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment