DEVILSAN
04-19-2009, 08:50 PM
Hi,
i was trying to select a render layer using mel to perform an operation if new render layer is created it should be selected, now i learnt how to create a render layer using
createRenderLayer -name "DiffuseLayer" -number 1 -noRecurse `ls -selection`;
and to make it as selected i did this optionVar -intValue renderLayerCurrent 1;
before creating a new layer which makes the newly created layer as selected.
But i want to know (Ques1)how i can perform the operation of selection the newly created layer without optionVar -intValue renderLayerCurrent 1;
or i want to (Ques2)check whether the option of Make new layer selected is true or false
i.e. whether optionVar -intValue renderLayerCurrent 1; or 0;
so that if its 0 i can make it 1 perform my operation and agian set it back to 0 so that user settings remains as they were before....
i was trying to select a render layer using mel to perform an operation if new render layer is created it should be selected, now i learnt how to create a render layer using
createRenderLayer -name "DiffuseLayer" -number 1 -noRecurse `ls -selection`;
and to make it as selected i did this optionVar -intValue renderLayerCurrent 1;
before creating a new layer which makes the newly created layer as selected.
But i want to know (Ques1)how i can perform the operation of selection the newly created layer without optionVar -intValue renderLayerCurrent 1;
or i want to (Ques2)check whether the option of Make new layer selected is true or false
i.e. whether optionVar -intValue renderLayerCurrent 1; or 0;
so that if its 0 i can make it 1 perform my operation and agian set it back to 0 so that user settings remains as they were before....
