Old 11-14-2018, 08:12 AM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default Set media item to source boundaries?

How to set media item to source boundaries via action?

Only close action I've found is 'Item: Set items length to source media lengths' but this only enlarges/shrinks the end of the item, but not the beginning.
nofish is offline   Reply With Quote
Old 11-15-2018, 02:33 AM   #2
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Xenakios/SWS: Reset item length and media offset
xpander is offline   Reply With Quote
Old 11-15-2018, 02:49 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Nice, thanks.
nofish is offline   Reply With Quote
Old 11-15-2018, 03:26 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by xpander View Post
Xenakios/SWS: Reset item length and media offset
I don't remember though if that correctly handles playrates and such or if someone has since fixed it to deal with those...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 11-15-2018, 04:13 AM   #5
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Upon further check, there is something funny about this action. It does seem to visibly get the item back to the original length, but when played back, it will only play back the length the item was before the action was used. Play cursor simply stops even while there is still some item left to play.

An example: Item source originally 2 seconds. It has been resized to one second. Using this action, the item length goes back to 2 seconds, but it will only play back to 1 second.

This problem comes up only if the given item is the last one on the current project timeline. If there are any other items later on the timeline on other tracks, everything plays through fine.

Also, if this item is e.g. moved just a tiny bit, playback will be normal. Almost like the move will update the project end marker, which the action itself didn't do?

Last edited by xpander; 11-15-2018 at 04:30 AM.
xpander is offline   Reply With Quote
Old 11-15-2018, 06:14 PM   #6
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

X-Raym has this one too:
Script: X-Raym_Expand selected items length to start and end of their source.eel

@xpander
Reminds me of some things we ran into here:
https://forum.cockos.com/showthread.php?t=208782
FnA is offline   Reply With Quote
Old 11-17-2018, 11:27 AM   #7
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Thanks for the headsup FnA, that does seem like similar/related issue.
xpander is offline   Reply With Quote
Old 07-25-2021, 06:17 PM   #8
Fergler
Human being with feelings
 
Fergler's Avatar
 
Join Date: Jan 2014
Posts: 5,207
Default

Is the OP's original action still a thing? I couldn't find it in action list
Fergler is offline   Reply With Quote
Old 07-26-2021, 02:51 AM   #9
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Looks like it has changed to Item: Set item start/end to source media start/end?
xpander is offline   Reply With Quote
Old 05-20-2022, 08:48 AM   #10
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Location: India
Posts: 283
Default

how to do that in a programmatical way through Lua.
Kaxaze music is offline   Reply With Quote
Old 05-20-2022, 09:04 AM   #11
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,750
Default

Quote:
Originally Posted by xpander View Post
Looks like it has changed to Item: Set item start/end to source media start/end?
That is a native action that you can call from a reascript as well.
schwa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.