thehive
03-05-2009, 08:38 PM
i have this code seem to work fine but for some reason
i can get the objs up an the lights up but i can seem to get them to link and unlink
any thoughts thanks guys
if (`window -exists LayerCake`)
deleteUI -window LayerCake;
if (`windowPref -exists LayerCake`)
windowPref -remove LayerCake;
window -t "LayerCake" -w 562 -h 350 LayerCake;
select -all ;
paneLayout -configuration "quad" ;
lightListEditor -asg -ss -r -m shadingLists ;
lightListEditor -asg -ss -r -m lightLists ;
columnLayout;
frameLayout -l "layerSetup" -h 300 -bs "etchedIn" -cll 1 ;
columnLayout ;
proc specular ()
{
createRenderLayer -n Specular;
setAttr "Specular.specular" 1;
setAttr "Specular.beauty" 0;
setAttr "Specular.color" 0;
setAttr "Specular.shadow" 0;
setAttr "Specular.diffuse" 0;
}
button -w 50 -al "left" -c "specular" -label "specular";
//////
proc Shadow ()
{
createRenderLayer -n Shadow;
setAttr "Shadow.specular" 0;
setAttr "Shadow.beauty" 0;
setAttr "Shadow.shadow" 1;
setAttr "Shadow.color" 0;
setAttr "Shadow.diffuse" 0;
}
button -w 50 -al "left" -c "Shadow" -label "Shadow";
//checkBoxGrp
// -numberOfCheckBoxes 4
// -label "LayerOverrides"
// -labelArray4 "Spec" "Diffuse" "Shadow" "Beauty";
///
proc Diffuse ()
{
createRenderLayer -n Diffuse;
setAttr "Diffuse.specular" 0;
setAttr "Diffuse.beauty" 0;
setAttr "Diffuse.shadow" 0;
setAttr "Diffuse.color" 0;
setAttr "Diffuse.diffuse" 1;
}
button -w 50 -al "left" -c "Diffuse" -label "Diffuse";
//checkBoxGrp
// -numberOfCheckBoxes 4
// -label "LayerOverrides"
// -labelArray4 "Spec" "Diffuse" "Shadow" "Beauty";
frameLayout -l "RenderSettings" -w 562 -h 60 -bs "etchedIn" -cll 1 ;
columnLayout ;
//Set RenderGlobals
button -w 60 -al "left" -c "RG" -label "Set RndrG";
proc RG()
{
}
//Set RenderGlobals
button -w 60 -al "right" -c "Vizoff" -label "Set VizOFF";
proc RG()
{
}
showWindow;
i can get the objs up an the lights up but i can seem to get them to link and unlink
any thoughts thanks guys
if (`window -exists LayerCake`)
deleteUI -window LayerCake;
if (`windowPref -exists LayerCake`)
windowPref -remove LayerCake;
window -t "LayerCake" -w 562 -h 350 LayerCake;
select -all ;
paneLayout -configuration "quad" ;
lightListEditor -asg -ss -r -m shadingLists ;
lightListEditor -asg -ss -r -m lightLists ;
columnLayout;
frameLayout -l "layerSetup" -h 300 -bs "etchedIn" -cll 1 ;
columnLayout ;
proc specular ()
{
createRenderLayer -n Specular;
setAttr "Specular.specular" 1;
setAttr "Specular.beauty" 0;
setAttr "Specular.color" 0;
setAttr "Specular.shadow" 0;
setAttr "Specular.diffuse" 0;
}
button -w 50 -al "left" -c "specular" -label "specular";
//////
proc Shadow ()
{
createRenderLayer -n Shadow;
setAttr "Shadow.specular" 0;
setAttr "Shadow.beauty" 0;
setAttr "Shadow.shadow" 1;
setAttr "Shadow.color" 0;
setAttr "Shadow.diffuse" 0;
}
button -w 50 -al "left" -c "Shadow" -label "Shadow";
//checkBoxGrp
// -numberOfCheckBoxes 4
// -label "LayerOverrides"
// -labelArray4 "Spec" "Diffuse" "Shadow" "Beauty";
///
proc Diffuse ()
{
createRenderLayer -n Diffuse;
setAttr "Diffuse.specular" 0;
setAttr "Diffuse.beauty" 0;
setAttr "Diffuse.shadow" 0;
setAttr "Diffuse.color" 0;
setAttr "Diffuse.diffuse" 1;
}
button -w 50 -al "left" -c "Diffuse" -label "Diffuse";
//checkBoxGrp
// -numberOfCheckBoxes 4
// -label "LayerOverrides"
// -labelArray4 "Spec" "Diffuse" "Shadow" "Beauty";
frameLayout -l "RenderSettings" -w 562 -h 60 -bs "etchedIn" -cll 1 ;
columnLayout ;
//Set RenderGlobals
button -w 60 -al "left" -c "RG" -label "Set RndrG";
proc RG()
{
}
//Set RenderGlobals
button -w 60 -al "right" -c "Vizoff" -label "Set VizOFF";
proc RG()
{
}
showWindow;
