Old 11-17-2017, 02:26 PM   #1
elijahlucian
Human being with feelings
 
Join Date: Dec 2006
Posts: 53
Default How to find the integer of an action?

All I can see is a string value, but I can't seem to send that over OSC to reaper...

how do i find the integer?
elijahlucian is offline   Reply With Quote
Old 11-17-2017, 02:50 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

NamedCommandLookup?
cfillion is offline   Reply With Quote
Old 11-17-2017, 02:56 PM   #3
elijahlucian
Human being with feelings
 
Join Date: Dec 2006
Posts: 53
Default

Quote:
Originally Posted by cfillion View Post
NamedCommandLookup?
oops. sorry I mean a custom script action.

all I see is "_RSd0e44f6d7708e318e09ab4bb4b78aa67765abbea" in actions

but putting this in my OSC command doesnt work. I need the integer of it.

when i right click in the actions panel, it doesn't have the option to tell me the integer.
elijahlucian is offline   Reply With Quote
Old 11-17-2017, 03:01 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

That's what NamedCommandLookup is for. It gives the current integer command ID of the given script or custom action ID.

cfillion is offline   Reply With Quote
Old 11-17-2017, 03:06 PM   #5
elijahlucian
Human being with feelings
 
Join Date: Dec 2006
Posts: 53
Default

Quote:
Originally Posted by cfillion View Post
That's what NamedCommandLookup is for. It gives the current integer command ID of the given script or custom action ID.

i see.. too bad its not more simple to just grab the integer from the actions list.

how did you get this interactive shell?
elijahlucian is offline   Reply With Quote
Old 11-17-2017, 03:12 PM   #6
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by elijahlucian View Post
how did you get this interactive shell?
It's my "Interactive ReaScript (iReaScript)" script: https://forum.cockos.com/showthread.php?t=177324. It's available in ReaPack.
cfillion is offline   Reply With Quote
Old 11-19-2017, 04:10 AM   #7
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Location: Indonesia Raya
Posts: 684
Default

though it might not be an elegant solution.

actually, you can rename a custom action/script on reaper-kb.ini. to make it shorter, or easy to recall with NamedCommandLookup.
__________________
JRENG! | M E T R I C
jrengmusic is offline   Reply With Quote
Old 11-19-2017, 07:03 AM   #8
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Jreng
Quote:
actually, you can rename a custom action/script on reaper-kb.ini. to make it shorter, or easy to recall with NamedCommandLookup.
This as been explicitly not recommended by Cockos team cause it seems to break some stuffs with SWS.
X-Raym is offline   Reply With Quote
Old 11-19-2017, 07:52 AM   #9
jrengmusic
Human being with feelings
 
jrengmusic's Avatar
 
Join Date: Jun 2015
Location: Indonesia Raya
Posts: 684
Default

yeah i've read the discussion. i guess because if may cause conflict if the command id was identical.

i have not found any problem so far..as i said before, it may not be an elegant solution. but it works
__________________
JRENG! | M E T R I C
jrengmusic 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:13 PM.


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