Old 04-04-2013, 12:52 PM   #1
gwok
Human being with feelings
 
gwok's Avatar
 
Join Date: Jun 2010
Location: canada
Posts: 3,396
Default layout mod help request

hey, I'm just looking to do a quick mod on these layouts. I always end up spending so long making small tweaks in walter, I figured I'd just post and hopefully save some time.

I have these 2 custom mixer layouts, and I would like to somehow display the folder state. I know there's there parameters to indicate a tracks folder status, but I've never used it before. I'm sure to someone who know, it's just a matter of one line of code. Maybe someone can clue me in - cheers

Layout "Sidebaronly" "sidebaronly"

clear mcp.*
set mcp.size [70 315]

set mcp.volume [43 2 20 20]
set mcp.mute [3 2 17 18 0 0 0 0]
set mcp.solo [22 2 17 18 0 0 0 0]
set mcp.meter <10 [2 298 65 14 0 1 0 1]


set mcp.label.margin [2 0 2 0 0.5]
set mcp.label.color ?recarm [217 74 74] [184 184 184]

set mcp.extmixer.mode [1]
set mcp.extmixer.position [0 45 70 260 20 0 0 1]
set mcp.label [1 29 70 18 0 0 0 0]
set mcp.meter.readout.color [0 0 0 0 0 0 0 0]


EndLayout ; end of "Sidebaronly"

Layout "Sidebaronlythin" "sidebaronlythin"

clear mcp.*
set mcp.size [38 315]

set mcp.volume [9 2 20 20]
set mcp.meter <10 [2 298 32 14 0 1 0 1]


set mcp.label.margin [2 0 2 0 0.5]
set mcp.label.color ?recarm [217 74 74] [184 184 184]

set mcp.extmixer.mode [1]
set mcp.extmixer.position [0 45 70 260 20 0 0 1]
set mcp.label [1 27 37 18 0 0 0 0]
set mcp.meter.readout.color [0 0 0 0 0 0 0 0]


EndLayout ; end of "Sidebaronlythin"
gwok is offline   Reply With Quote
Old 04-04-2013, 01:01 PM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default

The folder icon is displayed using, e.g mcp.folder and you can test for the state of the track using folderstate

set mcp.folder ?folderstate [68 350 20 16 0 1 0 1] [0]
; displays the folder icon only if the track is a folder

---------------------
May I recommend my "anchor points, too?
http://forum.cockos.com/showthread.php?t=120286
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-04-2013, 01:06 PM   #3
gwok
Human being with feelings
 
gwok's Avatar
 
Join Date: Jun 2010
Location: canada
Posts: 3,396
Default

cool, and will that incorporate the proper display of wether the track is a parent, child or last track in the folder?

thanks
gwok is offline   Reply With Quote
Old 04-04-2013, 02:54 PM   #4
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default

Down the back of the WALTER Themer's Guide:
Quote:
folderstate:
folder state of track, if applicable (0 for normal, 1 for
folder, -n for last track in folder(s))
So if I understand correctly, you would need different tests
?folderstate is true for a folder
!folderstate is true for an ordinary track
folderstate<0 is true for the last track in the folder

Another variable, folderdepth is positive if the track is in a folder (it represents how many folders deep is the track). So, for all child tracks folderdepth>0 is true
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-04-2013, 03:36 PM   #5
gwok
Human being with feelings
 
gwok's Avatar
 
Join Date: Jun 2010
Location: canada
Posts: 3,396
Default

cool, I knew there was probably a little know how involved. Thanks for the insight DS
gwok 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 07:52 AM.


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