title: How to get the list of root parents created in a scene - Autodesk Maya / Python?
body: <p>I am a bit new to python and I am trying to get a list containing all root parent existing in a scene of type <code>joint</code>.
  for example, my scene outliner is something like that:</p>
  <blockquote>
  <p><strong>group1&gt;&gt;group2&gt;&gt;joint1&gt;&gt;joint2&gt;&gt;joint3</strong></p>
  <p><strong>group3&gt;&gt;joint4&gt;&gt;joint5</strong></p>
  <p><strong>joint16&gt;&gt;joint17&gt;&gt;joint18</strong></p>
  </blockquote>
  <p>I want a script that travels through the outliner and returns a list, in my example:</p>
  <pre><code>[joint1, joint4, joint16]
  </code></pre>
  <p>Any tips would be really appreciated. thank you so much.</p>