Modulok
07-04-2004, 06:13 AM
Is there a mel command that will give the type of object selected? I know of the ls -sl -st but this isn't quite what I was looking for...
Basically what I want (ideally), is to know the type of object selected, as well as the type of component selected. the filterExpand command is wonderful, however it doesn't include all object types. Joints for example are not listed as having a filterExpand flag...
Ideally I'd like a command to return an array of intergers. So for example if I had a polygonal object selected it would return a value of 1, a nurbs object would return a value of 2, poly vertices would return a value of 3, etc etc...so that each object and component type had its own unique ID number that gets returned to an array.
I think I can pull this off in a very long winded, round about way by using the filter expand and ls command creating my own id list and such...But before I start a very in depth process I thought I'd check to see if there was an easier way to go about it.
Thanks.
-Modulok-
Basically what I want (ideally), is to know the type of object selected, as well as the type of component selected. the filterExpand command is wonderful, however it doesn't include all object types. Joints for example are not listed as having a filterExpand flag...
Ideally I'd like a command to return an array of intergers. So for example if I had a polygonal object selected it would return a value of 1, a nurbs object would return a value of 2, poly vertices would return a value of 3, etc etc...so that each object and component type had its own unique ID number that gets returned to an array.
I think I can pull this off in a very long winded, round about way by using the filter expand and ls command creating my own id list and such...But before I start a very in depth process I thought I'd check to see if there was an easier way to go about it.
Thanks.
-Modulok-
