How do you set flex animations that are not on the face in lua?

How do you set flex animations that are not on the face in lua?

I am trying to figure out how to make a flex animation that I put on a model work. It is not on the face, and the face poser and other tools do not change the flex value. It does show the flexes, it just does not control them.

Would I use one of these?


duplicator.DoFlex( Entity Ent, table Flex, number Scale )


Entity:SetFlexWeight( Integer FlexNum, Integer Weight )


Entity:SetFlexScale( Integer Scale )

I can partially understand what some of these commands do, but it doesn’t really explain how to scale a specific flex animation.

The best way to find out how shit works is just looking at sandbox.

This code is from the FacePoser, check it out.