|
Author
|
Message
|
|
Kelleytoons
|
Kelleytoons
Posted Last Year
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
I have a STRONG feeling avatar.GetClothes() is there directly because I complained about it (at the time I was on speaking terms with the dev who put Python in there). Too bad it took so long I was no longer interested in programming (g). I was able to get what I wanted using the other routines - from the avatar I can get all mesh attachments, clothes, accessories or even hair - but it's good to know there are more specific ways. (I don't suppose they ever put in the other thing I asked, the ability to do an autolink for all textures? I'd love to have that still).
Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor Mike "ex-genius" Kelley
|
|
|
|
|
Victor.Soupday
|
Victor.Soupday
Posted Last Year
|
|
Group: Forum Members
Last Active: 3 days ago
Posts: 569,
Visits: 9.0K
|
If you want the object references: avatars = RLPy.RScene.GetAvatars() avatar = avatars[0] clothes = avatar.GetClothes() accessories = avatar.GetAccessories() hairs = avatar.GetHairs()
Clothes (RLPy.RICloth) - Have a material component, to get the physics component you have to get it from the avatar. Accessories (RLPy.RIAccessory) - Have physics components but not material components. Hairs (RLPy.RIHair) - Only has a physics component. These are fairly recent additions to the API, they weren't there when iC8/CC4 first launched. You can call GetMeshNames() on all three types, but to get the material names you would usually have to get them from the parent Avatar's material component.
|
|
|
|
|
Kelleytoons
|
Kelleytoons
Posted Last Year
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
Actually, Chris (before he left, I guess) DID provide the answer: # 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: print("Mesh is" + mesh) material_list = material_component.GetMaterialNames(mesh) for mat in material_list: print("Material is " + mat)
So I am forever grateful to him (why I didn't see it three years ago I have no idea - life has a way).
Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor Mike "ex-genius" Kelley
|
|
|
|
|
Kelleytoons
|
Kelleytoons
Posted Last Year
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
Crap - I asked the same question two years ago and never got an answer (so I'm unlikely to get one now). Is there NO way to get clothing items? I can hardly believe that is true (then again - it's Reallusion. Sigh).
Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor Mike "ex-genius" Kelley
|
|
|
|
|
Peter (RL)
|
Peter (RL)
Posted 3 Years Ago
|
|
Group: Administrators
Last Active: Last Year
Posts: 23.1K,
Visits: 36.6K
|
Thank you all for patience. We are working urgently to get new documentation out as soon as possible. Hopefully it won't be too much longer to wait now.
Peter Forum Administrator www.reallusion.com
|
|
|
|
|
animagic
|
animagic
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Month
Posts: 15.8K,
Visits: 31.4K
|
Yeah, developers have been able to update their scripts for iClone 8, so the information is there. It just needs to be shared. There's mentioning in the KB article to contact Support in case of questions. Maybe bombard them?
|
|
|
|
|
4u2ges
|
4u2ges
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Month
Posts: 5.3K,
Visits: 16.8K
|
Shame indeed Looks like for me with much emphasis on programs outside of Iclone that I'm not interested in and as it looks no scripting in Iclone 8 my time has come to an end with RL oh well is was good while it lasted. Chris
Oh no, stay Chris :) I am also pissed, but I still hope they'd come to senses and release some sorts of statement about scripting development.
|
|
|
|
|
videodv
|
videodv
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: 2 Years Ago
Posts: 342,
Visits: 12.0K
|
4u2ges (7/25/2022)
This was supposed to be an Open project and it got off a pretty good start, but like many other good ideas it seems to go by the wayside. +10 It is such a shame.... :crazy: :( Shame indeed Looks like for me with much emphasis on programs outside of Iclone that I'm not interested in and as it looks no scripting in Iclone 8 my time has come to an end with RL oh well is was good while it lasted. Chris
|
|
|
|
|
4u2ges
|
4u2ges
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Month
Posts: 5.3K,
Visits: 16.8K
|
This was supposed to be an Open project and it got off a pretty good start, but like many other good ideas it seems to go by the wayside. +10 It is such a shame.... :crazy: :(
|
|
|
|
|
animagic
|
animagic
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Month
Posts: 15.8K,
Visits: 31.4K
|
There is some minimal information about the Python update for iClone 8 in a KB article ( https://kb.reallusion.com/Product/53033/Are-the-existing-iClone-7-Python-plugins-be-compatible-with-iClone-8), stating that this information will be shared with developers (presumably of established plugins). What beats me is why this information is not generally available like the Python information for iClone 7? :crazy: This was supposed to be an Open project and it got off a pretty good start, but like many other good ideas it seems to go by the wayside.
|
|
|
|