Trim Clip In/Out from script

Hi I would like some help to create a script that I can assign to a shortcut (“I” and “O”) that will let me trim the selected clip IN/OUT to the current frame.
It will mimic the the same as when you drag the start of the clip toward the current frame mark.
It’s seems to be pretty easy to do the OUT:

    frame = FBSystem().LocalTime.GetFrame()
    for track in FBStory().RootFolder.Tracks:
        for clip in track.Clips:
            if clip.Selected == True:
                clip.Stop = FBTime(0,0,0,frame,0)
                

but I can’t find a way to trim the start of the clip without moving my clip fowards in time :cry:

clip.Start = FBTime(0,0,0,frame,0)

:point_up: doesn’t work as I expected ahah
I also tried playing with MarkIn and MarkOut but can’t get it to work.

replying to myself as I found a solution to MarkIn not doing anything to my clip:

clip.PropertyList.Find("Mark In").Data = FBTime(0,0,0,frame,0)

works as an alternative