Old 07-12-2018, 03:11 PM   #1
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default How to get the default track and envelope lane heights in pixels?

Hello!

How can I find how many pixels is the default track and default envelope lane heights? (In the chunk they appear as 0)

Thanks!

Last edited by amagalma; 07-13-2018 at 10:36 AM.
amagalma is offline   Reply With Quote
Old 07-16-2018, 11:45 AM   #2
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

Anyone? Are they stored in a place where I could get them somehow in a script?
amagalma is offline   Reply With Quote
Old 07-18-2018, 08:16 AM   #3
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

Maybe in the reaper.ini or in the Reaper-Preferences somewhere?

Otherwise I would say, try to alter height of a second track/envelope, until it matches the height of a default height 0.
After that, you can use that found value.


Edit: Maybe looking into RPP-files could be helpful as well, maybe default heights are stored per project...
mespotine is offline   Reply With Quote
Old 07-20-2018, 01:30 PM   #4
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

Thanks for the response!


This seems to return the correct height in pixels:
Code:
defaultheight = 24 + 12*reaper.SNM_GetIntConfigVar("defvzoom", -1)
amagalma 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 02:12 AM.


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