Author
|
Message
|
dogged2003
|
dogged2003
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Last Year
Posts: 418,
Visits: 4.5K
|
How to get the bones of a non-human avatar? And manage them?So I get nothing:import math, RLPy
#-- Get Characters from current scene --# avatar_list = RLPy.RScene.GetAvatars() #-- Get First Character --# avatar = avatar_list[0] #-- Get Skin Bone Data --# skin_bone = avatar.GetSkeletonComponent().GetSkinBones() #-- Get Motion Bone Data --# motion_bone = avatar.GetSkeletonComponent().GetMotionBones()
for bone in skin_bone: print ("Skin Bone: " + bone.GetName())
for bone in motion_bone: print ("Motion Bone: " + bone.GetName())
My YouTube channel.
Edited
5 Years Ago by
dogged2003
|
|
|
Kelleytoons
|
Kelleytoons
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Yesterday
Posts: 9.2K,
Visits: 21.8K
|
robby = RLPy.RScene.FindObject(RLPy.EObjectType_Prop, "RobbyRigged") skeleton_component = robby.GetSkeletonComponent() motion_bones = skeleton_component.GetMotionBones() for bone in motion_bones: print (bone.GetName())
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
|
|
|
dogged2003
|
dogged2003
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Last Year
Posts: 418,
Visits: 4.5K
|
Not prop, like the horse.
My YouTube channel.
|
|
|
The-any-Key
|
The-any-Key
Posted 5 Years Ago
|
Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 356,
Visits: 1.9K
|
dogged2003 (1/13/2019) Not prop, like the horse.Did you try his code :-) Currently these are the types in iClone:
EObjectType_Object EObjectType_Avatar EObjectType_Prop <<< Horse probably here EObjectType_Camera EObjectType_Particle EObjectType_Light EObjectType_SpotLight EObjectType_PointLight EObjectType_DirectionalLight
iClone 7, 3DXchange 7 Pipeline, CC3 Pipeline, CT8 Pipeline, Iray, Live Face, iPhone Xr, Win 10, i9 9900K ~5GHz, Nvidia RTX 2080 8GB, 16GB Ram, M.2 SSD
Edited
5 Years Ago by
The-any-Key
|
|
|
Kelleytoons
|
Kelleytoons
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Yesterday
Posts: 9.2K,
Visits: 21.8K
|
It's a prop (only the "standard" avatars are avatars - even including other bipeds).
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
Edited
5 Years Ago by
Kelleytoons
|
|
|
dogged2003
|
dogged2003
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Last Year
Posts: 418,
Visits: 4.5K
|
This is avatar: Pyton don't see the bones: import RLPy
#-- Get Characters from current scene --# avatar_list = RLPy.RScene.GetAvatars() print("is avatars:") print(len(avatar_list)) #-- Get First Character --# avatar = avatar_list[0] print("avatar Name, ID: ") print(avatar.GetName()) print(avatar.GetID())
#-- Get Skin Bone Data --# skin_bone = avatar.GetSkeletonComponent().GetSkinBones() print("skin_bone") print(skin_bone)
print("skin_bone size: ") print(skin_bone.size())
#-- Get Motion Bone Data --# motion_bone = avatar.GetSkeletonComponent().GetMotionBones() print("motion_bone") print(motion_bone)
print("motion_bone size: ") print(motion_bone.size())
for bone in skin_bone: print ("Skin Bone: ") print(bone.GetName())
for bone in motion_bone: print ("Motion Bone: ") print(bone.GetName())
robby = RLPy.RScene.FindObject(RLPy.EObjectType_Prop, "Arabian_Horse") print("robby") print(robby)
My YouTube channel.
|
|
|
Kelleytoons
|
Kelleytoons
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Yesterday
Posts: 9.2K,
Visits: 21.8K
|
There are still issues with motion bones. Hopefully fixed next patch.
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
|
|
|
The-any-Key
|
The-any-Key
Posted 5 Years Ago
|
Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 356,
Visits: 1.9K
|
Yep. Got the same issue with the non human avatars. (tested the horse) No skin or motion bones from the API. Make sure you send a bug report in the feedback for that.
iClone 7, 3DXchange 7 Pipeline, CC3 Pipeline, CT8 Pipeline, Iray, Live Face, iPhone Xr, Win 10, i9 9900K ~5GHz, Nvidia RTX 2080 8GB, 16GB Ram, M.2 SSD
Edited
5 Years Ago by
The-any-Key
|
|
|
bennydee
|
bennydee
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Yesterday
Posts: 67,
Visits: 3.1K
|
please I need a developer to create a plugin for volumentric light system and a shader that can enable realtime subsurface scattering and also a more accurate lightning system ( like unreal engine). I am willing and ready to pay. thanks.
|
|
|
bennydee
|
bennydee
Posted 5 Years Ago
|
Group: Forum Members
Last Active: Yesterday
Posts: 67,
Visits: 3.1K
|
please I need a developer to create a plugin for volumentric light system and a shader that can enable realtime subsurface scattering and also a more accurate lightning system ( like unreal engine). I am willing and ready to pay. thanks.
|
|
|