Profile Picture

How to get list of clothing on Avatar?

Posted By gordryd 3 Months Ago
You don't have permission to rate!
Author
Message
gordryd
gordryd
Posted 3 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)

Group: Forum Members
Last Active: 2 days ago
Posts: 528, Visits: 6.0K
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?

Reallusion Certified Director / Reallusion Best Visual Award / Reallusion Certified Content Developer
See all the G-Tools Plug-Ins available for iClone here: https://marketplace.reallusion.com/store/G-Tools
Data Juggler
Data Juggler
Posted 3 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)Distinguished Member (8.4K reputation)

Group: Forum Members
Last Active: 3 hours ago
Posts: 1.3K, Visits: 3.3K
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.


Creator of the free website:
PixelDatabase.Net
A Free Online Text Based Image Editor
https://forum.reallusion.com/uploads/images/6e6663e2-0ecf-447a-ab3d-d49d.png

4u2ges
4u2ges
Posted 3 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)Distinguished Member (13.1K reputation)

Group: Forum Members
Last Active: 4 days ago
Posts: 3.6K, Visits: 13.4K
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.




videodv
videodv
Posted 2 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)Distinguished Member (2.3K reputation)

Group: Forum Members
Last Active: 11 hours ago
Posts: 337, Visits: 9.7K
   # 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.



Reading This Topic