- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello
I'm trying to do a thing in MEL where i have a animated camera I'm using for game cut scenes. When the camera is doing a jump cut it just animates a big distance over 2 sequential frames.
I would like to get all the ranges of frames for each shot to use for playblast / exporting tool etc. But I'm stuck with the best way to do it.
Obviosuly I can get all keyframe time values in an array just with `keyframe -q` but I'm trying all kinds of things now to get all the ranges that are begun and terminated by 2 sequential keyframes.
Eg a camera might have 2 shots which would be 1 cut but with some keys defining the motions within a shot
So i would get values like 0,1,15,30,31,40,50,51
And I want the script to return 1,30,31,50 (1:30,31:50 would be a nice format)
but i would also want 1,15,30,31,40,50 to get the same result
TL:DR just give me the first and last value of any range that starts and ends with 2 seqeuntial values
thanks all.
Solved! Go to Solution.
