title: Selecting subelements of objects in blender using python
body: <p>I'm using blender and I need to apply a material to comp_1_1_2_a. I have already tried to do this but it doesn't have attribute "materials" so I need to the material to each subelement of comp_1_1_2_a. How can I select them using python script?</p>
  
  <p><a href="https://i.stack.imgur.com/SWRWz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SWRWz.png" alt="enter image description here"></a></p>