rhoffm22
08-14-2003, 01:44 PM
if(`ls -sl`==null)
{
EPCurveTool;
}
else
{
boundary -ch 1 -or 0 -ep 0 -rn 0 -po 0 -ept 0.01 `ls -sl`;
layerEditorAddObjects Head_surfaces;
select -cl;
EPCurveTool;
}
When I run this Mel script is says
// Error: if(`ls -sl`==null)
//
// Error: Invalid use of Maya object "null". //
How do I say to it that if the selection has nothing then just run the EPCurveTool....
Thanks
{
EPCurveTool;
}
else
{
boundary -ch 1 -or 0 -ep 0 -rn 0 -po 0 -ept 0.01 `ls -sl`;
layerEditorAddObjects Head_surfaces;
select -cl;
EPCurveTool;
}
When I run this Mel script is says
// Error: if(`ls -sl`==null)
//
// Error: Invalid use of Maya object "null". //
How do I say to it that if the selection has nothing then just run the EPCurveTool....
Thanks
