# How to query data in Set?

**URL:** https://forum.highend3d.com/t/how-to-query-data-in-set/6229
**Category:** Maya
**Tags:** mel
**Created:** [April 30, 2002, 1:37pm UTC](https://forum.highend3d.com/t/how-to-query-data-in-set/6229 "2002-04-30T13:37:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kimc](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/k/6de8d8/32.png) [@kimc](https://forum.highend3d.com/u/kimc)
#### Post date: [April 30, 2002, 1:37pm UTC](https://forum.highend3d.com/t/how-to-query-data-in-set/6229/1 "2002-04-30T13:37:33Z")

</div>

I am trying to query the content in a Set.  
I want to know if the Set contains only   
Poly, Vertex, Face, Edge, UV, etc.  
Is it possible to do it in MEL??

This is what I have tried:

// Get a list of all Sets.  
string $allSets[] = `ls -sets`;

for( $possibleSet in $allSets )  
{  
// Is this a Quick Set??  
 if (`nodeType UVSet` == "objectSet")  
 {  
 // This is a Set.... But how do I   
 // find out if it has the following:  
 // Poly,Vertex,Face,Edge,UV...etc  
 ...  
 }  
}

My purpose is to write (yet another) Set manager,  
but mainly to assist myself in Poly modelling.

(This is the first time I'm looking into MEL)

kimc.
