|
|
|
04-24-2017, 01:01 AM
|
#1
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Change layout script needed
The 20 layout change actions are not enough for the Maschine theme i am trying to finish out, its getting there, but i need 32 layout change actions.
Anybody know how to do this in scripting ?
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 02:36 AM
|
#2
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
In GetSetMediaTrackInfo_String(), there are parameters "P_MCP_LAYOUT" and "P_TCP_LAYOUT" for this.
|
|
|
04-24-2017, 03:31 AM
|
#3
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
So it can be done then ?
Is their a bounty page or something i can offer somebody some dollars to script it up ?
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 06:14 AM
|
#4
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
I misunderstood your post a bit. This is the bounty page.
How would you like it to function? Just one simple action for each layout or some user input window?
|
|
|
04-24-2017, 07:28 AM
|
#5
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
I hear ya... not sure this would help or not...
One of the PITA things about layouts for me is having to set both the TCP and MCP separately... so I made a set of track templates that both set the way I want them for starters... I have 20...
We can set the number of track templates allowed in the SWS.ini
I don't know if there is a maximum limit....????
I currently use those to load a new track that has matching TCP and MCP as desired.
OK but... back when I was working on 'my' theme... I made TCP and MCP layouts... 17 each, that have 1 of 17 possible colored sliders... the colors match the SWS colors in the SWS palate I use. I wanted to do that also for other possible MCP layouts [colored vol. sliders] but hit a 'bug' wall in the I discovered the menu for MCP layouts would not show more than a certain number of layouts. If I recall at that time it was 36. In otherwords, I could have them in the WALTER but they would not show in the layout menu... [really pissed me off!] ...I don't know if that ever got fixed.
|
|
|
04-24-2017, 07:37 AM
|
#6
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
Here is the basic thing.
When you open the script, on the top there is a config area where you write the name of the layout you want to set by that particular script file. For more layouts, just make a copy of the file with a different name (increase the number) and change the layout name in that new file.
|
|
|
04-24-2017, 10:13 AM
|
#7
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
On my phone at the minute, will test as soon as i get back to my rig
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 10:32 AM
|
#8
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
I cant get this working here for the MCP
Tried this
Code:
-- CONFIG --------------------------------------------------------------------------------------------
layoutName = "MCP_Meters_Colors_1" --Set the name of the layout, e.g. "aa - Standard". Leave blank like this "" for Global layout default.
-- END CONFIG ----------------------------------------------------------------------------------------
selNum = reaper.CountSelectedTracks( 0 )
--if no selected track, quit
if selNum==0 then return end
for t=0, selNum-1 do
track = reaper.GetSelectedTrack(0,t)
if track then
reaper.GetSetMediaTrackInfo_String( track, "P_MCP_LAYOUT", layoutName, true )
end --if track
end --for
But it doesn't switch the layout
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 10:44 AM
|
#9
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Works for the TCP though
Code:
-- CONFIG --------------------------------------------------------------------------------------------
layoutName = "TCP_Meters_Colors_1" --Set the name of the layout, e.g. "aa - Standard". Leave blank like this "" for Global layout default.
-- END CONFIG ----------------------------------------------------------------------------------------
selNum = reaper.CountSelectedTracks( 0 )
--if no selected track, quit
if selNum==0 then return end
for t=0, selNum-1 do
track = reaper.GetSelectedTrack(0,t)
if track then
reaper.GetSetMediaTrackInfo_String( track, "P_TCP_LAYOUT", layoutName, true )
end --if track
end --for
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 11:01 AM
|
#10
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Scrub that, they both work perfectly, I was being a gimp
Bfooz, do you have a donation page or something somewhere ?
You have just jumped my theme ahead an absolute ton.
Really really appreciate this scripters forum more than you guys could believe !!!!
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 11:36 AM
|
#11
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
Quote:
Originally Posted by gpunk_w
Scrub that, they both work perfectly, I was being a gimp
Bfooz, do you have a donation page or something somewhere ?
You have just jumped my theme ahead an absolute ton.
Really really appreciate this scripters forum more than you guys could believe !!!!
|
I'm glad to hear that. You can make a donation here: https://www.paypal.com/cgi-bin/websc...=P6CLSXPHVEJ2E . Thank you!
What theme do you create?
|
|
|
04-24-2017, 12:00 PM
|
#12
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Sent you a little drink via the link (Will send you another on payday )
I'm copying Maschines UI, so that i don't have to reteach the people i taught to use Maschine how to use Reaper.
Obviously i am not copying it 1:1, I am redesigning all their crappy parts myself, so they work the same but are easier to read/use.
These scripts are the key to all the coloring that happens when you color a track in Maschine, you have a panel that opens on a right click with 16 colors, when you click one of the colors, it colors everything on that channel/track to match, which i can now do with these scripts
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-24-2017, 09:43 PM
|
#13
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Getting there, all these colored UI elements are auto switched in by your scripts when i color a track
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
04-25-2017, 01:57 AM
|
#14
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
I see now, that's a good idea.
Is that down arrow in the toolbar what I think it is - a drop down menu by means of opening another toolbar?
|
|
|
04-25-2017, 07:37 PM
|
#15
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
No it is just the icon for fullscreen, the magnifying glass opens a docker with a toolbar on top though, so yeah it does have panels/toolbars opening and closing with other toolbars
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
05-30-2017, 01:25 PM
|
#16
|
Human being with feelings
Join Date: Nov 2015
Posts: 642
|
Thanks a ton for that script! It helps a lot to bring those layouts further ahead.
|
|
|
05-30-2017, 02:15 PM
|
#17
|
Human being with feelings
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
|
Post us a video. Sounds like the setup's quite the blast.
|
|
|
06-24-2020, 11:16 PM
|
#18
|
Human being with feelings
Join Date: Sep 2015
Location: Paris
Posts: 544
|
Thank you for the script. It will allow me also to go further in my theme. I'll try it later today. So nice to have you guys around... <3
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:54 AM.
|