FORUMS: list search recent posts

no warning getting if selection is empty

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Anvesh Chary
no warning getting if selection is empty
on Mar 2, 2012 at 6:45:10 am

string $sel[] = `ls -sl`;
for ($obj in $sel) {if (size($obj) > 0){print "yeh selectedn";}
else if (size($obj) < 1){warning "nothing selected";}}


Return to posts index

Steve Sayer
Re: no warning getting if selection is empty
on Mar 7, 2012 at 8:11:42 pm

string $sel[] = `ls -sl`;
if (size($sel) > 0)
print "yeh selected";
else
warning "nothing selected";


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]