thats exactly what I thought too. but it doesn't seem to work that way. just as an example, select a shape node (i just created a sphere, and pressed down), and then run this code:
string $isShape = ls -sl -s
;
string $temp = ($isShape == "") ? "yes it is" : "no it isn't";
print $temp;
it gives me this error:
// Error: line 1: Cannot convert data of type string[] to type string. //
and trying to change the $isShape == "" to: $isShape[0] == "" doesn't work because the array is an empty array. doing a size on that array doesn't seem to work either.
is there anyway I can determine if I have a shape node or a transform node selected?
Thanks.