Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Function bank
PostPosted: August 17th, 2007, 12:44 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
I wish that Opus had a function bank where frequently used functions could be stored and called.

This would work by allowing the user to call this 'global' function from any publication that they are working on, and it would automatically be recognised when the program is run / published.

There would have to be some sort of add function code to current script object facility for those sharing IMPs.

At the moment, I use the excellent Arsclip to store a bank of reusable code, but prehaps...

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: August 17th, 2007, 1:28 pm 
That, I think, would be a fantastic idea.

As an interim, would a forum for posting functions that others might use be realistic?


Top
   
 
 Post subject:
PostPosted: August 17th, 2007, 6:03 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
"Set External file" on a script object saves the script object to to a file, which can be imported to another Publication. You can also open it in a text editor.

Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: August 17th, 2007, 9:24 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
You can also save useful scripts into the Script Templates folder (text files with an .ils extension) and you can then easily access them via the QuickBuild Script Template dialog.

_________________
ddww Opus Developer


For this message Duncan Lilly has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: August 18th, 2007, 1:55 am 
I am thinking more about a place where people could post and exchange useful functions, so as not to re-develop the wheel


Top
   
 
 Post subject:
PostPosted: August 18th, 2007, 9:01 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Cheers Duncan,

This isn't quite what I meant. Although, if you could create these code snippets and then call a function from them without having to insert the actually manually, this would be great.

However, I have to say, that the snippet templates is a great idea in itself. I have to add a script object contatin the liciencing & registration code to each of my programs and it's extremely simple using this tool.

Also, there is some great examples of using advanced features of javascript - the ability to create objects and add prototypes is probably my favourite!

Suppose now I need to change my wish.

1. Keep the scripts templates
2. Add ability to call functions from these templates without having to insert actual code (Opus could do this automatically?)
3.Have an online depositity to share these functions

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group