Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 10-29-2014, 03:12 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default Changing numbers of slots in S&M.ini

This may be a bug, I'm not sure yet.

If I change the number of slots in the S&M.ini file, new actions are generated handling those slots. So far so good.

Here I changed
Code:
S&M_TRACKFXCHAIN=10              ; Resources - Paste (replace) FX chain to selected tracks, slot n
S&M_PASTE_TRACKFXCHAIN=10    ; Resources - Paste FX chain to selected tracks, slot n
from 8 to 10

... Big pic: https://i.imgur.com/Ab6ozjF.png

And, as you can see the additional Actions were listed in the Actions List.

BUT, other Actions were given different Cmd Ids. Aaargh - what happens to my menus / toolbars / Custom Actions that were using those Actions (they are all referenced by Cmd Id, aren't they)?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 10-29-2014, 05:19 AM   #2
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

It should be alright. If they refer to custom/, extension actions or scripts, they must be referenced by the Custom ID string, which is unique. Otherwise they could potentially get screwed up each time you import a script or create a custom action.
If ReaScripts which trigger custom or extension actions are written badly, they may reference CmdId directly and be hosed.
gofer is offline   Reply With Quote
Old 10-29-2014, 05:38 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Thank you - you could well be right.

Here the extension Actions start at 53000 and the CmdIds are all shown in (...) in the Action List. I'll guess that (...) means dynamic assignment of CmdId.

The only other Actions after the extension ones are my Custom Actions, also dynamically assigned (and the No-Op action, at 65535) and they are referenced by name, not Cmdid.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 10-30-2014, 02:04 PM   #4
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

Quote:
Originally Posted by DarkStar View Post
Custom Actions, also dynamically assigned (and the No-Op action, at 65535) and they are referenced by name, not Cmdid.
If by name you mean the custom ID string (not the clear name) then that should be right. You can change the clear name of a custom action that is assigned to a toolbar button and the button will still work after the change.

While trying that ^^ I noticed that the button's tooltip will not change when you edit the action's name. And if it's a text button, the text won't update as well. Another nit to pick
gofer 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:08 AM.


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