Welcome to %s forums

BrainModular Users Forum

Login Register

[script] import script file

I need help on a Patch
Post Reply
manecante
Member
Posts: 71
Contact:

Unread post by manecante » 29 Dec 2009, 23:39

hi

is it possible to import an external *.script file into another script ?
(would be nice to make functions re-usable and clean up code which contains hundreds of lines ...)

cheers

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 30 Dec 2009, 03:11

hi manecante,
manecante wrote:is it possible to import an external *.script file into another script ?
I think the script engine has no import/include functionality (have to be confirmed by Senso, or Bsork ?)

ctrl A + ctrl V...

I mean, if you use an external text editor like notepad++, who can manage multi-files, that could do the trick ?
(would be nice to make functions re-usable and clean up code which contains hundreds of lines ...)
Just a through, but if you have pretty big script and begin to feel limited by the engine, maybe it's time to look into the SDK ;)

We put a lot of effort in the upcoming V5 to make it clean, accessible and even more powerful


Hope it help
Martin FLEURENT - Usine Developer - SDK maintainer

manecante
Member
Posts: 71
Contact:

Unread post by manecante » 30 Dec 2009, 15:21

hello.

1st of all, I have to apologize for using manecante account to post here but as I'm not an Usine user (just helping her with some code), I thought it would be easier.

thanks for your answer Martignasse but working with multi-files in emacs is not an option (having an "import" functionality in scripts would be neat though...).
looking into the sdk is also a non-go as I have absolutely no idea about non-unix system, but I admit that it would be definitively better.

cheers,
_yvan

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 02 Jan 2010, 11:20

martignasse wrote:I think the script engine has no import/include functionality (have to be confirmed by Senso, or Bsork ?)
according to senso, 25.8.09, its not possible
http://www.sensomusic.com/forums/viewtopic.php?id=1646

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests