Load RagDoll

Load RagDoll

Anonymous
Not applicable
784 Views
1 Reply
Message 1 of 2

Load RagDoll

Anonymous
Not applicable

Hi,

Are there python functions to load and save ragdoll from/into .txt files as seen in this screen :

ragdoll.png

0 Likes
Accepted solutions (1)
785 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Ok i found the solution :

 

ragdoll = FBCreateObject("Browsing/Templates/Physical Properties", "Ragdoll", "rag1")
lApp = FBApplication()
currChar = lApp.CurrentCharacter
 
FBConnect( currChar, ragdoll )
FBConnect( ragdoll, currChar )

ragdoll.PropertyList.Find("Approximation File").Data = "C:\\path\\to\\ragdoll\\file.txt"
ragdoll.PropertyList.Find("Load",False)()