I'm trying to replicate van haze's Trim Region End to Mouse macro but I feel like I'm missing certain pieces... I think it has something to do with the Move or Click Mouse action but then I get stuck. I'd like to know what the Action name is for the moving the region to the mouse. Any help?
I'm not sure what's going on here - I'll try to have a look at that in a moment.
But remember, all KM is really doing is remote-controlling Logic - so, it's sending mouse clicks, or keyboard commands to Logic - there's often not much that's particularly "clever", except in the problem solving techniques of the script creator, perhaps, as macro controlling sometimes requires a bit of left-field inspirational creative problem solving...
Edit: Ok. So there are usually different ways to achieve a given goal. One way I can think of to do it would be:
- You have a region from bar 1 to bar 7
- Your mouse is at around the 5 1 0 0, over the region you want to trim, as you want to trim your region end to bar 5
- You execute the macro, which does:
- Step 1: Send key command to select Logic's Scissor tool
- Step 2: Click where the mouse is to split the region at that bar (this leaves the second region selected)
- Step 3: Send a Backspace key to delete the selected region
- Step 4: Send key command to re-select Logic's default arrow tool
Now this isn't necessarily the best way of doing this, and the GS poster doesn't say how he's implemented it, or what the exact behaviour is, so I don't know.
Might be a nice exercise for us to see how many other ways this could be done using Logic + KM...
Edit: I also came up with a few variations that afterwards I see someone in the GS thread also mentioned, which is using locators, but I think that's a less optimal solution as requires picking up the playhead position by clicking on the timeline vertically up from the mouse position (which I would regard as a bit "fragile"), setting rounded locators of the region and then right locator by playhead, and then trimming the region by the locators, then restoring the original mouse position.