Old 12-02-2018, 11:49 AM   #1
Chris T
Human being with feelings
 
Join Date: Dec 2010
Posts: 27
Default Can JSFX user functions be sourced from a different File?

Hi guys,

I would like to write a JSFX plugin with user defined functions. To avoid long codes I want to place functions in different files and include/source them at the beginning of the main code. Is this possible?

Thanks
Chris
Chris T is offline   Reply With Quote
Old 12-02-2018, 02:15 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,238
Default

See 'import filename' in section 'JSFX file structure':
https://www.reaper.fm/sdk/js/js.php
nofish is offline   Reply With Quote
Old 12-03-2018, 11:17 AM   #3
Chris T
Human being with feelings
 
Join Date: Dec 2010
Posts: 27
Default

hey nofish,

thanks a lot, I haven't looked at this part of the documentation. Now I am all ready to go
Chris T 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 05:14 PM.


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