Jadi kita ingin membuat layer solid dengan warna kuning dengan ukuran width dan length 50llu layer tersebut bergerak tiap detik Pertama buka after effect create composition. lalu buka notepad masukkan kode dibawah ini dan save as    myComp = app.project.item(1);
mySolid = myComp.layers.addSolid([1.0,1.0,0], "my square", 50, 50, 1); // property dari layer
newMask = mySolid.Masks.addProperty("Mask");
newMask.inverted = true;
myMaskShape = newMask.property("maskShape");
myShape = myMaskShape.value;
myShape.vertices = [[5,5],[5,45],[45,45],[45,5]];
myShape.closed = true;
myMaskShape.setValue(myShape);
myPosition = mySolid.property("position"); //myPosition adalah position dari layer
myPosition.setValueAtTime(0,[80,30]);   //nah disini set positionnya
myPosition.setValueAtTime(1,[130,60]);
myPosition.setValueAtTime(2,[80,90]);//setValaueAtTime untuk set keyframe 
myPosition.setValueAtTime(3,[30,60]);
myPosition.setValueAtTime(4,[80,30]);anda bisa save script nya ke .jsx unicode UTF -8 dan run script di after effect
 
 
 
 
 
0 komentar:
Posting Komentar