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

Reply
 
Thread Tools Display Modes
Old 04-11-2023, 11:32 AM   #841
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,331
Default

Quote:
Originally Posted by JackOrez View Post
I use to check that page for the latest, but I had given up because it was also not the current version. Looks like it is now, so thank you very much.
Yeah, I messed something up. But now it works 🙂
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-28-2023, 02:26 PM   #842
Kickaxe
Human being with feelings
 
Join Date: Apr 2023
Posts: 21
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Yeah, I messed something up. But now it works 🙂
Hi Meo-Ada Mespotine, I installed your Ultraschall repo. There are a lot of very useful scripts in there, thank you.

In your online documentation, you show the following:

get_action_context
Lua: boolean is_new_value, string filename_with_path, integer sectionID, integer cmdID, integer mode, integer resolution, integer val, string contextstr = reaper.get_action_context()

I get "9: bad argument #1 to 'ShowConsoleMsg' (string expected, got nil)" when trying to view the contents contextstr, which is supposed to show the shortcut that ran the action. What am I doing wrong? I know this is a reaper function and when I look at their description, it doesn't list contextstr as a return item where yours does. I'm really hoping I am able to capture the shortcut as I have several shortcuts bound to the script and I would like to be able to do some conditional execution based on which shortcut was used. If I am not able to get that via reaper.get_action_context() is there another function I can use to accomplish this? Any help would be greatly appreciated.
Kickaxe is offline   Reply With Quote
Old 05-28-2023, 04:48 PM   #843
Kickaxe
Human being with feelings
 
Join Date: Apr 2023
Posts: 21
Default

Quote:
Originally Posted by Kickaxe View Post
Hi Meo-Ada Mespotine, I installed your Ultraschall repo. There are a lot of very useful scripts in there, thank you.

In your online documentation, you show the following:

get_action_context
Lua: boolean is_new_value, string filename_with_path, integer sectionID, integer cmdID, integer mode, integer resolution, integer val, string contextstr = reaper.get_action_context()

I get "9: bad argument #1 to 'ShowConsoleMsg' (string expected, got nil)" when trying to view the contents contextstr, which is supposed to show the shortcut that ran the action. What am I doing wrong? I know this is a reaper function and when I look at their description, it doesn't list contextstr as a return item where yours does. I'm really hoping I am able to capture the shortcut as I have several shortcuts bound to the script and I would like to be able to do some conditional execution based on which shortcut was used. If I am not able to get that via reaper.get_action_context() is there another function I can use to accomplish this? Any help would be greatly appreciated.
My bad, I see that this return value requires Reaper 6.71 and above. I was still on 6.70. I've updated Reaper and it's all good now. Regards.
Kickaxe is offline   Reply With Quote
Old 05-29-2023, 04:11 AM   #844
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,331
Default

Quote:
Originally Posted by Kickaxe View Post
My bad, I see that this return value requires Reaper 6.71 and above. I was still on 6.70. I've updated Reaper and it's all good now. Regards.
Yeah. That's why I add a small icon with versionnumber to each function in the docs, so you can see, which Reaper version is required for the newest set of features in that function.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-29-2023, 03:18 PM   #845
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,331
Default

4.9 - "Depeche Mode - Everything Counts" - 30th of June 2023

Has now 1663 functions, with 13 new ones and two fewer ones(!)

new in this release:
  • ReaSpaghetti
    Features bugfixes and additions that will make Ultraschall API compatible with Sexan's ReaSpaghetti coding-tool in the future.
    Keep checking for ReaSpaghetti-updates for more details.
  • Razor Edit
    You can now set and resize RazorEdits. The resizing is possible by setting a new length or resizing by a factor, like 0.5 for half or 2 for double the size.

    New features in 4.9
  • Docs: links and code-examples - added links to related functions as well as some first code-examples; can now add more very easily
  • DocEngine: Docs_GetAllUSDocBlocsFromFile - loads all USDocBlocs from a file
  • DocEngine: Docs_GetReaperApiFunction_Categories - returns the index-categories of a Reaper-function(including extensions)
  • DocEngine: Docs_GetUSDocBloc_Examples - retrieves the code-example-attributes stored in a USDocBloc
  • DocEngine: Docs_GetUltraschallApiFunction_Categories - returns the index-categories of an Ultraschall-function
  • Envelopes: DeleteTrackEnvelopePointsBetween - removes all envelope-points between start and endposition
  • RazorEdit: RazorEdit_GetBetween_Envelope - get all razor-edits of an envelope between start and endposition one or all razor-edits in a track
  • RazorEdit: RazorEdit_GetBetween_Track - get all razor-edits of a track between start and endposition
  • RazorEdit: RazorEdit_Resize_Envelope - resizes one or all razor-edits in an envelope
  • RazorEdit: RazorEdit_ResizeByFactor_Envelope - resizes one or all razor-edits in an envelope by a factor(requested by Daniel Lumertz)
  • RazorEdit: RazorEdit_Resize_Track - resizes one or all razor-edits in a track
  • RazorEdit: RazorEdit_ResizeByFactor_Track - resizes one or all razor-edits in a track by a factor(requested by Daniel Lumertz)
  • RazorEdit: RazorEdit_Set_Envelope - sets start/endposition of a razor-edit in an envelope
  • RazorEdit: RazorEdit_Set_Track - sets start/endposition of a razor-edit in a track

Changes from 4.8 to 4.9
  • Helper Functions: SFEM - crashed, when the occurred error happened not within a function -> fixed now
  • DocEngine: Docs_GetAllUSDocBlocsFromString - returned nil in case of an error which was wrong; returns -1 now -> fixed now
  • Docs: Reaper Internals - updated to Reaper 6.80
  • Envelopes: MoveTrackEnvelopePointsBy - didn't properly move and cut envelope-points -> fixed
  • MediaItems: RippleCut - didn't properly move and cut envelope-points; cut env-points in all tracks, not just the ones from trackstring -> fixed
  • MediaItems: RippleCut_Reverse - didn't properly move and cut envelope-points; cut env-points in all tracks, not just the ones from trackstring -> fixed
  • MediaItem_Takes: GetProjectPosByTakeSourcePos - removed from release, due a Reaper bug that might remove take-markers; will return when bug is fixed
  • MediaItem_Takes: GetTakeSourcePosByProjectPos - removed from release, due a Reaper bug that might remove take-markers; will return when bug is fixed
  • PodcastMetadata: GetPodcastContributorAttributesAsJSON - fix due fix in GetSetContributor_Attributes
  • PodcastMetadata: GetSetContributor_Attributes - had wrong undocumented parameter in the function which is removed now; added "ctrb_role"
  • PodcastMetadata: GetSetPodcastEpisode_Attributes - removed "epsd_tagline" and "epsd_author"
  • PodcastMetadata: GetSetPodcast_Attributes - added "podc_tagline" and "podc_feed"
  • PodcastMetadata: GetShownoteAttributesAsJSON - timestamp is now in hh:mm:ss:mss
  • PodcastMetadata: PodcastMetadata_CreateJSON_Entry - did only do the first chapter, ignoring the rest; improved layout of JSON -> fixed
  • RazorEdit: RazorEdit_Nudge_Track - index didn't count properly, when envelopes had razor-edits -> fixed now



Please update it via ReaPack using: https://github.com/Ultraschall/ultra..._api_index.xml
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine 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 03:17 AM.


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