Hey Meng,
it should have read:
hisComp.layer(“masterNull”).transform.position.key(2).value;
thisComp.layer(“masterNull”).effect(“TRICODE”)(“Layer”).transform.position;
I am trying to do both position and scale.
Let’s say I have two keyframes spaced 30 frames apart on the position on a null. The nulls name is “masterNull”
First key frame is 540,540.
Second key frame is 320,320.
I have a second null in the composition name “ARI”
The null labeled “ARI” has the position value of 260,400
I am using the Layer Control effect on the masterNull. The Layer Control effect is labeled “TRICODE”
I want to be able to select “ARI” from the drop down menu of the “TRICODE” on the “masterNull” and have the second key frame change to the position value of “ARI”
In addition I would like to do the same to scale, substituting the scale value of the second key frame in the “masterNull” scale with the scale value of “ARI” using the layer control effect.
the above code substitutes key frame 1 and key frame 2 for the position value of “ARI”
so it would be something like this:
KF1: 540,540 KF2: 320,320
substitute KF2 with: 260,400 from the “ARI” null
I hope this is a better explanation.
Thank you for looking at this.