Slip edit left vs. move left

2G wrote on 5/17/2004, 8:43 AM
Can someone summarize how you specify slip editing an event (where the actual media doesn't move) vs. moving the event? I see the AdjustStartLength method. But it isn't clear to me how use it to do the four typical actions:

1) Slip edit left
2) Slip edit right
3) Move event left
4) Move event right

Are all of these done with this one api? What are the parms to specify each?

Thanks.

2G

Comments

jetdv wrote on 5/17/2004, 11:09 AM
Add footage to the beginning of the clip (where mtc is the amount to add)

dStart = MyEvent.Start.ToMilliseconds();
dLength = MyEvent.Length.ToMilliseconds();
dStart = dStart - mtc;
dLength = dLength + mtc;
MyEvent.AdjustStartLength(new Timecode(dStart), new Timecode(dLength), false);



Add footage at the end of the clip (where mtc is the amount to add)

dStart = EndEvent.Start.ToMilliseconds();
dLength = EndEvent.Length.ToMilliseconds();
dLength = dLength + mtc;
EndEvent.AdjustStartLength(new Timecode(dStart), new Timecode(dLength), true);


Move an event left OR right:

currTake = ievnt.ActiveTake;
currOffset = currTake.Offset;
ievnt.Start = ievnt.Start - MoveOffset;
currTake.Offset = currOffset;


If you just want to slip the video with no other changes to the length or position, just change the offset.