Profile Picture

iClone 7.5 (with new Python APIs ) is Available!

Posted By luke (RL) 2 Years Ago
Rated 5 stars based on 1 vote.
Author
Message
dogged2003
dogged2003
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 412, Visits: 4.1K
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
Last Year by dogged2003
Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 6.8K, Visits: 14.1K
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 R7, Win 10, i7-8700k, 4.7GHz CPU, 32GB RAM, GTX Titan XP (12GB), Samsung 960 Pro 2TB M-2 SSD, TB+ Disk space
Mike "ex-genius" Kelley
dogged2003
dogged2003
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 412, Visits: 4.1K
Not prop, like the horse.

My YouTube channel.
The-any-Key
The-any-Key
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)

Group: Forum Members
Last Active: Last Week
Posts: 355, Visits: 1.8K
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
Last Year by The-any-Key
Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 6.8K, Visits: 14.1K
It's a prop (only the "standard" avatars are avatars - even including other bipeds).



Alienware Aurora R7, Win 10, i7-8700k, 4.7GHz CPU, 32GB RAM, GTX Titan XP (12GB), Samsung 960 Pro 2TB M-2 SSD, TB+ Disk space
Mike "ex-genius" Kelley
Edited
Last Year by Kelleytoons
dogged2003
dogged2003
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 412, Visits: 4.1K
This is avatar:
https://forum.reallusion.com/uploads/images/b320f35e-0d4f-462e-baa8-d1b1.jpg


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 Last Year
View Quick Profile
Distinguished Member

Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)Distinguished Member (21.8K reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 6.8K, Visits: 14.1K
There are still issues with motion bones.  Hopefully fixed next patch.



Alienware Aurora R7, Win 10, i7-8700k, 4.7GHz CPU, 32GB RAM, GTX Titan XP (12GB), Samsung 960 Pro 2TB M-2 SSD, TB+ Disk space
Mike "ex-genius" Kelley
The-any-Key
The-any-Key
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)Distinguished Member (1.7K reputation)

Group: Forum Members
Last Active: Last Week
Posts: 355, Visits: 1.8K
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
Last Year by The-any-Key
bennydee
bennydee
Posted Last Year
View Quick Profile
Senior Member

Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)

Group: Forum Members
Last Active: 2 days ago
Posts: 28, Visits: 1.3K
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 Last Year
View Quick Profile
Senior Member

Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)Senior Member (399 reputation)

Group: Forum Members
Last Active: 2 days ago
Posts: 28, Visits: 1.3K
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.



Reading This Topic