Votes
0
Product:
iClone 7
Version:
7.71
Status:
Active
Issue 6685
How to get the X Y Z co-ordinate values of a prop or bone?
If I say set a key for a prop or bone other then at 0,0,0 how do I retrieve the keys X Y Z values?

Hope that makes sence.

Christopher Watts
OS: Windows 10
  •  2
  •  924
Submitted byvideodv
1
COMMENTS (2)
videodv
Thats works great but how do I get the xyz data from the motion layer for the bone names (torso head ect) of a character?

Christopher Watts
AllenLee (RL)
Hi Christopher Watts,

You can try the following ways:

prop_obj = RLPy.RScene.FindObject(RLPy.EObjectType_Prop, "Your_prop_name")    
transform_control = prop_obj.GetControl("Transform")
key_count = transform_control.GetKeyCount()
for i in range(key_count):
    time = RLPy.RTime()
    transform_control.GetKeyTimeAt(i, time)
    transform_for_ref = RLPy.RTransform()
    transform_control.GetValue(time, transform_for_ref)
    print(transform_for_ref.T().x)
    print(transform_for_ref.T().y)
    print(transform_for_ref.T().z)


Allen Lee
1