How to get list of clothing on Avatar?


https://forum.reallusion.com/Topic490684.aspx
Print Topic | Close Window

By gordryd - 3 Years Ago
The Parent/Child commands only return bone information about the Avatar.  Since .ccCloth is not a prop, it doesn't show up in prop list either.  Any ideas?
By Data Juggler - 3 Years Ago
My wish list item is for exposing sub props of props is on page 2 here:

https://forum.reallusion.com/469826/Submit-your-Python-Wishlist-Reallusion-Python-Wishlist-Thread?PageIndex=2

Clothing for characters would be another good use of getting child items. This seems like whoever wrote the API doesn't use the API much.
By 4u2ges - 3 Years Ago
A few days ago we hit 1 year anniversary since the last Python update: https://wiki.reallusion.com/IC_Python_API:Uses_and_Capabilities
With the way things are going, I am not sure if we will see updates soon. Maybe in iClone 8.. hopefully.
By videodv - 3 Years Ago
   # Get Avatar mesh and Material
    avatar_list = RLPy.RScene.GetSelectedObjects()
    avatar = avatar_list[0]
    material_component = avatar.GetMaterialComponent()
    mesh_list = avatar.GetMeshNames()
    mesh_name = mesh_list[0]
    material_list = material_component.GetMaterialNames(mesh_name)

    for mesh in mesh_list:
        material_list = material_component.GetMaterialNames(mesh)     
        for mat in material_list:
            print(mat)

Hopefully this may help.
Chris.
By Kelleytoons - Last Month
Ah, sir - why the $%@ did I not see your reply so many years ago?  (Perhaps I was busy with other things in life.  We'll never know :>Wink.

In any case, I thank you a thousand times.  This does indeed work perfectly (and now off to anoint my other thread questions with this info.  Just in case some other poor soul has the same issue).