title: Magento: how to get the attributes that belong to an attribute set?
body: <p>Having an attribute set, how can I get a list of the attributes it contains (or better yet, just the custom attributes that don't belong to the Default attribute set)?</p>
  
  <p>The attribute set itself can be obtained in several ways, such as:</p>
  
  <pre><code>$entityTypeId = Mage::getModel('eav/entity')-&gt;setType('catalog_product')-&gt;getTypeId();
  $attributeSet = Mage::getResourceModel('eav/entity_attribute_set_collection')-&gt;setEntityTypeFilter($entityTypeId)-&gt;addFilter('attribute_set_name', 'Default');
  </code></pre>
  
  <p>Note that I need to use the attribute set, so getting the list of attributes from a product is not the solution I am looking for.</p>