Hello guys,
I’m trying to toggle (ON/OFF) the two sided lighting, but this is not working properly.
Do you have any idea why?
Do you have aby solution?
For any help thank you in advace.
Cheers!
//modelEditor -e -twoSidedLighting false modelPanel4;
string $selectedPanel = getPanel -wf;
string $twoSL = modelEditor -e $selectedPanel;
if(modelEditor -edit $selectedPanel)
{
if($twoSL == “twoSidedLighting”)
{
modelEditor -edit -twoSidedLighting true $selectedPanel;
}
else
{
modelEditor -edit -twoSidedLighting false $selectedPanel;
}
}