|
By Kelleytoons - 3 Years Ago
|
So I know how to find if something is a prop or an avatar, but how do I identify something if it's a clothing item or a shoe?
GetProps won't find such items, and neither will GetAvatars. So how do I find these things?
|
|
By 4u2ges - 3 Years Ago
|
The real question is, where the heck is documentation?? I got a bunch of little scripts I use in my workflow constantly and none of them are working anymore!
|
|
By videodv - 3 Years Ago
|
4u2ges (7/21/2022) The real question is, where the heck is documentation?? I got a bunch of little scripts I use in my workflow constantly and none of them are working anymore!
Yup Same here. Chris.
|
|
By Data Juggler - 3 Years Ago
|
If I were Reallusion, and you introduced a ton of breaking changes in a new version, a conversion tool would sure come in handy.
I started one, but I don't know all the internals to do this correctly. It makes me hesitant to invest a bunch of time, if it might get broken in the future.
Backwards compatibility would be better than breaking everything. Even if new methods are the "preferred" way.
|
|
By animagic - 3 Years Ago
|
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.
|
|
By 4u2ges - 3 Years Ago
|
|
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: :(
|
|
By videodv - 3 Years Ago
|
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
|
|
By 4u2ges - 3 Years Ago
|
|
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.
|
|
By animagic - 3 Years Ago
|
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?
|
|
By Peter (RL) - 3 Years Ago
|
|
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.
|
|
By Kelleytoons - Last Year
|
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).
|
|
By Kelleytoons - Last Year
|
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).
|
|
By Victor.Soupday - Last Year
|
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.
|
|
By Kelleytoons - Last Year
|
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).
|