Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 07-21-2021, 03:02 PM   #1
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default Center selected media item in view vertically ?

Has anyone every figured out a way to center a selected media item in the view vertically ?

no likey.........
Track: Vertical scroll selected tracks into view

This action scrolls the item "into" the view but doesn't center it vertically and I can't find any code that works better either. Thanks for any ideas.
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-21-2021, 03:45 PM   #2
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Quote:
Originally Posted by Coachz View Post
Track: Vertical scroll selected tracks into view

This action scrolls the item "into" the view but doesn't center it vertically and I can't find any code that works better either.
Part of the problem with that action, and anything similar I gather, is that if the selected track is high enough in the list, that track simply can't scroll down to center of view. That because track 1 will anchor the view from top to center. Or is the problem something else?
xpander is offline   Reply With Quote
Old 07-21-2021, 03:46 PM   #3
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Quote:
Originally Posted by xpander View Post
Part of the problem with that action, and anything similar I gather, is that if the selected track is high enough in the list, that track simply can't scroll down to center of view. That because track 1 will anchor the view from top to center. Or is the problem something else?
Actually all tracks are off even ones at the bottom where there is plenty of room to scroll up. Oh well.
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-21-2021, 03:54 PM   #4
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Ok. I've tried it here, but all the tracks that can do it seem to center fine, pretty much exactly in vertical center of arrange. Applies with different docker arrangements and multiple selected tracks too.
xpander is offline   Reply With Quote
Old 07-21-2021, 04:14 PM   #5
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Thanks for testing. What should I infer from this since mine dont center?
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-21-2021, 04:33 PM   #6
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 7,670
Default

Ha, well, that's a good question. To be sure we are talking about the same thing, could you maybe post a picture or two with the issue visible?
xpander is offline   Reply With Quote
Old 07-22-2021, 11:11 AM   #7
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Thanks for testing this. The problem is as you mentioned. When I select items up higher they scroll no problem but when I pick items at the bottom of the list there is not enough below them to scroll. If I take a track below them and make it big, then it works. Maybe I'll hack something to get the next track, make it huge, then center my media item and then resize it back. Thanks!
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-22-2021, 12:36 PM   #8
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

I spent the last hour trying to hack a way to simply CENTER the selected track in the middle of the screen but no luck. Anyone out there able to achieve this feat of seeming impossibility ? It's tracks at the bottom of the screen that fail. Like track 45 where there are no more media items below it.



__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-22-2021, 01:21 PM   #9
poetnprophet
Human being with feelings
 
poetnprophet's Avatar
 
Join Date: Jan 2018
Posts: 1,651
Default

I don't see how that would work, if you have minimized tracks there's no way to center items on the "edges" without adding some space to the beginning or end (top or bottom) and that just doesn't make any sense.

just for selected media items, I use double left click on media item to make it full screen (toggles). not sure if that helps you or not, but in a way it doesn't get any more centered than that right?
__________________
https://www.kdubbproductions.com/
https://www.youtube.com/channel/UCpC...2dGA3qUWBKrXQQ
i7 8700k,4.9Ghz,Win10,Reaper 6,Motu 828es, Cranborne ADAT500
poetnprophet is offline   Reply With Quote
Old 07-22-2021, 01:26 PM   #10
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Quote:
Originally Posted by poetnprophet View Post
I don't see how that would work, if you have minimized tracks there's no way to center items on the "edges" without adding some space to the beginning or end (top or bottom) and that just doesn't make any sense.

just for selected media items, I use double left click on media item to make it full screen (toggles). not sure if that helps you or not, but in a way it doesn't get any more centered than that right?
What action is on your Media Item double click mouse modifier please ?
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-22-2021, 01:31 PM   #11
poetnprophet
Human being with feelings
 
poetnprophet's Avatar
 
Join Date: Jan 2018
Posts: 1,651
Default

Quote:
Originally Posted by Coachz View Post
What action is on your Media Item double click mouse modifier please ?
not at the studio right now to look. The context should be media items. I think it overrides a default action for double click media item.
__________________
https://www.kdubbproductions.com/
https://www.youtube.com/channel/UCpC...2dGA3qUWBKrXQQ
i7 8700k,4.9Ghz,Win10,Reaper 6,Motu 828es, Cranborne ADAT500
poetnprophet is offline   Reply With Quote
Old 07-22-2021, 01:35 PM   #12
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

I see Media Item context with double click



__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-22-2021, 01:39 PM   #13
poetnprophet
Human being with feelings
 
poetnprophet's Avatar
 
Join Date: Jan 2018
Posts: 1,651
Default

I'll let you know in about 3 or 4 hours.
__________________
https://www.kdubbproductions.com/
https://www.youtube.com/channel/UCpC...2dGA3qUWBKrXQQ
i7 8700k,4.9Ghz,Win10,Reaper 6,Motu 828es, Cranborne ADAT500
poetnprophet is offline   Reply With Quote
Old 07-22-2021, 02:41 PM   #14
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Quote:
Originally Posted by poetnprophet View Post
I'll let you know in about 3 or 4 hours.
no hurry, thanks a lot !
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-22-2021, 02:59 PM   #15
poetnprophet
Human being with feelings
 
poetnprophet's Avatar
 
Join Date: Jan 2018
Posts: 1,651
Default

View: Toggle zoom to selected items
__________________
https://www.kdubbproductions.com/
https://www.youtube.com/channel/UCpC...2dGA3qUWBKrXQQ
i7 8700k,4.9Ghz,Win10,Reaper 6,Motu 828es, Cranborne ADAT500
poetnprophet is offline   Reply With Quote
Old 07-22-2021, 03:10 PM   #16
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Quote:
Originally Posted by poetnprophet View Post
View: Toggle zoom to selected items
Thanks, I'll try that one tomorrow.. appreciate it.
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-23-2021, 05:37 AM   #17
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Quote:
Originally Posted by poetnprophet View Post
View: Toggle zoom to selected items
This solution works perfectly and is much better than the 20 lines of code I was hacking together. Thanks !!
__________________
Track Freezing Scripts

Coachz Repo
Coachz is online now   Reply With Quote
Old 07-23-2021, 09:17 AM   #18
poetnprophet
Human being with feelings
 
poetnprophet's Avatar
 
Join Date: Jan 2018
Posts: 1,651
Default

Quote:
Originally Posted by Coachz View Post
This solution works perfectly and is much better than the 20 lines of code I was hacking together. Thanks !!
nice very glad to hear that!
__________________
https://www.kdubbproductions.com/
https://www.youtube.com/channel/UCpC...2dGA3qUWBKrXQQ
i7 8700k,4.9Ghz,Win10,Reaper 6,Motu 828es, Cranborne ADAT500
poetnprophet 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 06:37 PM.


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