http://manual.reallusion.com/iClone/script/python/class_r_l_py_1_1_r_i_morph_component.htmlI'm trying a sample code from link above, but it seems I just can't get it work.
I tested just first 3 lines, and it's the 4th line below that keeps giving me an error, <class 'TypeError'>.
import RLPy
avatar_list = RLPy.RScene.GetAvatars()
morph_component = avatar_list[0].GetMorphComponent()
result = morph_component.AddKey( "your_mesh_name", "your_morph_name", RLPy.RTime(67), 0.5 )
I changed only two strings, "your_mesh_name", "your_morph_name". For "your_mesh_name" I tried my head mesh name, "Face_smooth". And I think there's no problem with this because I could get that mesh string from avatar.GetMeshNames().
And Instead of "your_morph_name", I tried my blendshape name, Face Key slider name("Eyes Blink", "EyesBlink", "Eyes_Blink"...), and "Morph_1"... but to no avail. Still happens a type error.
Where did I get it wrong? Hope to get some answer or codes that works.