• TF2 Eyelid Controller Equation
    1 replies, posted
For a model I was making I needed to make the eyes act the same way as the ones on the TF2 player characters. I had to use the old VTA method as I don't have the tools to create DMX morph meshes. I thought I may as well show the eyelid controller equation used in case anyone else was having the same problem. It works exactly the same as the TF2 character eyelids except that the controller 'eye_updown' is non operative as I couldn't figure it out. If anyone has got this to work correctly I'd appreciate it if you share your finds so a solid solution can at least be made available. This is the QC code. You can amend it to an existing QC. [code] $model "Body" "eyelid_example.smd" { flexfile "eyelid_example.vta" { flexpair "CloseLidLo" 1.0 frame 1 position 2.0 decay 0.0 flexpair "CloseLidUp" 1.0 frame 2 position 2.0 decay 0.0 } flexcontroller eyelids range -1.0 1.0 right_CloseLid left_CloseLid multi_CloseLid %CloseLidLoR = 0.5 + (right_CloseLid / 2.0) - ((multi_CloseLid / 2.0) * (1.0 + right_CloseLid)) %CloseLidUpR = 0.5 + (right_CloseLid / 2.0) + ((multi_CloseLid / 2.0) * (1.0 + right_CloseLid)) %CloseLidLoL = 0.5 + (left_CloseLid / 2.0) - ((multi_CloseLid / 2.0) * (1.0 + left_CloseLid)) %CloseLidUpL = 0.5 + (left_CloseLid / 2.0) + ((multi_CloseLid / 2.0) * (1.0 + left_CloseLid)) } [/code]
Thank you so much for that info helped me a lot. i managed to fix the updown/rightleft flexes with this lines [QUOTE]flexcontroller eyes range -45 45 eyes_updown flexcontroller eyes range -45 45 eyes_rightleft [/QUOTE]
Sorry, you need to Log In to post a reply to this thread.