I think there is some confusion in the terminology. "AnimVec2" has nothing to do with "vectors" in a vector layer. It is a type of container for storing a single pair X and Y values.
This had me completely confused when I first started trying to write scripts.
This is how I do it if I understand what you are trying to do:
Code: Select all
myVariable = LM.Vector2:new_local()
myVariable = skel:Bone(4).fPos
You only would use this type of variable to store Vector2 values that contain an X and Y value. Like bone position (fPos) or point position.
I don't think there is a way to store the "entire" animation of a point in a single value. You would have to store individual frame channel values in some kind of table and read it back in one frame at a time. You could check each frame for a key, then store the frame and the position of each point.
I am not positive about any of this but I am... pretty sure. I would hate to give misleading information.
-vern