Animation Job precalculated data [SOLVED]

Hi!

I need to initialize some data on a constraint once and then use it within jobs

Is this a proper / intended way to do it:

public class JiggleConstraint : RigConstraint<
        JiggleConstraintJob,
        JiggleConstraintData,
        JiggleConstraintJobBinder<JiggleConstraintData>
    >
    {
        private void Start()
        {
            m_Data.random1 = new Vector3(blah blah);
            m_Data.initialRotation = m_Data.constrained.localRotation.eulerAngles;
        }

?

Ok… looks like I was almost right)

public override DampedTransformJob Create(Animator animator, ref T data, Component component)
        {
            var job = new DampedTransformJob();

            job.driven = ReadWriteTransformHandle.Bind(animator, data.constrainedObject);
            job.source = ReadOnlyTransformHandle.Bind(animator, data.sourceObject);

            var drivenTx = new AffineTransform(data.constrainedObject.position, data.constrainedObject.rotation);
            var sourceTx = new AffineTransform(data.sourceObject.position, data.sourceObject.rotation);