Votes
0
Product:
iClone 7
Version:
7.7
Status:
Not a Bug
Issue 6585
RLPy RIFaceComponent GetKey() does not return all values.
Following the example of the page
http://wiki.reallusion.com/IC_Python_API:RLPy_RIFaceComponent

The function GetKey() returns 60 elements in the 'morph' array, but in iClone, there are 66 elements. The 6 missing elements are shifted in the 'custom' array.


Code:

result = face_component.GetKey(time, head, left_eye, right_eye, morph, custom, bone, weight)
print (len(morph))
-> 60

But, in the Face Key window, Tab expression, there are 66 morphs.
OS: Windows 10
Attachment:
  • python.PNG
  •  1
  •  702
Submitted bySaeder
1
COMMENTS (1)
AllenLee (RL)
Hi Saeder,

Sorry this sample code is wrong.
The order of parameter kBone is before kCustom.

Please refer to the attachment for the correct parameter order.

Allen Lee
Attachment:
  • GetKey_ParaOrder.PNG
1