View Single Post
Old 07-10-2016, 12:08 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Here is a workarround (with SWS extension check)
ReaScripts-Templates/X-Raym_Check if SWS is installed and download if not.lua at master · ReaTeam/ReaScripts-Templates

The trick is to loop in reaper function table and store existing key (aka function names) in a table, and check if an extension function (no matter which one) exist in this table or not.
It doesn't return REAPER error if it doesn't exist.

EDIT: code snippet updated with new method, base don NammedCommand

Last edited by X-Raym; 07-15-2016 at 11:01 AM.
X-Raym is offline   Reply With Quote