Hi
Probably barking up the wrong tree so don't shout. :mellow: I use the usual method to cut a clip or calculate the split position as Borate describes. nevertheless......
The current length of a particular clip can be found in the autosaved.vpj file....
User name/Appdata/Roaming/NCH Software/VideoPad/autosave.vpj
but it may require a bit of searching. Automatically doing this might require some string checking but manually, you can open the autosave .vpj file in notepad. Search for the line that has the clip name with its in and out points marked. The out value is the current length of the clip.
e.g. a clip called BLACK CIRCLE on the timeline with a duration of 10 seconds shows the following line...
.....name=BLACK%20CIRCLE.jpg&offset=0&in=0&out=10000......
You can change the out value to 5000 for a 5 second clip (or calculate a %.) Save the notepad so as to overwrite the original autosave and then re-run the altered autosave.vpj file. After a check window noting a change was made, VP will open with the clip now half its length.
I am not certain whether this messes up other parameters however (like removing gaps etc.) but manually this seems to work on a single clip.
Whether or not you can achieve this using scripts I don't know but the process might be worth looking into.
Nat