Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 07-12-2018, 03:11 PM   #1
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
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!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

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
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Anyone? Are they stored in a place where I could get them somehow in a script?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-18-2018, 08:16 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
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...
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-20-2018, 01:30 PM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Thanks for the response!


This seems to return the correct height in pixels:
Code:
defaultheight = 24 + 12*reaper.SNM_GetIntConfigVar("defvzoom", -1)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
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:14 AM.


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