Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 28th, 2025, 4:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: I know this is dead simple but.....
PostPosted: January 25th, 2010, 12:20 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
I've taken to using Opus again after several years' break.
I've never used scripting previously but I've had tremendous help from this forum. Thanks to Larry in the USA in particular and others.

I've programmed in many languages but it's just the simple things I can't yet master. :(

I have three numeric variables I want users to input which will then influence subsequent chapters in the scripts.

I'd like to call them

wait
speed
end


and then have them change a similar variable in the script

say

zz=20+wait
yy=106+speed
xx=45+end


Please can someone set me off. :roll:

Many thanks :lol:

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 25th, 2010, 1:29 pm 
Offline
Godlike
Godlike
User avatar

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

First of check your variable names - wait and end are keywords / functions. Better practice to use a camel case prefix such as "myEnd".

Second, to do this:

1. create the text-box and add a new 'publication' variable.

2. Add either a script action action or object and basically use the syntax that you've already posted except that you need to convert the values in the text-boxes to number because Opus treats them as strings.

EG zz = 20 + parseInt(myEnd)

You may also need to define zz in the page / publication variables section if you want to display it on screen.

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: January 25th, 2010, 3:04 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Thanks for the help. :lol:

Guess I'll have to sit down with the guide. :(

Can't do an input box and get a number. :oops:

Never mind. :roll:

Regards

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 25th, 2010, 5:22 pm 
Offline
Godlike
Godlike
User avatar

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

Not sure why the guide is needed. It's all possible and straightforward. Just parse the value from the input box.

Alternatively, if the program is simply doing what you've stated on screen, then forget the script and use Opus actions - they'll add the values as numbers.

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: January 25th, 2010, 6:21 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Hi Mack

Like the heading says Dead easy...........
but I can't set up an input box :evil:

I can programme in loads of languages and I have a National award!
My programmes are all over Europe.

But I've tried all sorts; read the book I got with Opus 4. Tried to follow
but nope - can't do a simple task like this. :shock:

I've looked for examples on the Opus downloads but..............

I guess I'll have to use VB. :(

Cheers

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 25th, 2010, 9:26 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
See if this helps.

http://sandbox.interaktiv.co.uk/TI_controller.swf

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: January 25th, 2010, 11:11 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Amazing

Very well done and thank you.

Probably enough to get me going.

Don't take it down yet.

I'll watch again.

Kind regards

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 25th, 2010, 11:42 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
read the book I got with Opus 4. ... can't do a simple task like this. .......I guess I'll have to use VB. Can't do an input box and get a number.
Standby. Forget VB for this.

I think it is a good TRADEOFF. 'It' being how simple OpusScript is for declaring variables... I don't have to specify type or format up front. (and even if I do set the text/number type in the object's dialog, as you see it is not strictly enforced). It just takes a little 'consciousness', once you get the hang of it in working with scripting.

Okay, check out the sample Pub.
Does the implementation pretty simply.
Take time to digest the two or three different calculations/expressions... in script object 1.

Structure FYI. Button has a script action that simply calls the function over in the ScriptObject.


You do not have the required permissions to view the files attached to this post.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2010, 12:35 am 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Thanks again Larry. :D

I haven't looked yet but I've downloaded. 8)

23.33 in the UK (yawns). :cry:

I'm off to bed - have a good day. :lol:

Regards

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2010, 12:38 am 
Offline
Godlike
Godlike
User avatar

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

Hope it helps. The quality's not great as I've upgrade my screen recording program and not had time to find the new settings. What with every other program on the market being upgrade this year - or so it seems.

You're quite welcome to download it to review offline.

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: January 26th, 2010, 1:10 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Cool demo Mack.
Quote:
I've upgrade my screen recording program
which app is that?

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2010, 12:08 pm 
Offline
Godlike
Godlike
User avatar

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

It's TechSmith's Camtasia but I'm evaluating the latest edition. It was set to the use the MP4 codec which is pants for on-screen text. Teach me to work late or was it early by that point?

It's a great program, but at the cost, it's worth keeping your eyes open for the free edition that they sometimes give away as there isn't much in the new versions that is of much help for basic casting.

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: January 26th, 2010, 3:07 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Used this for ages. Ulead's screen capture isn't bad and Magix do quite a good screen copy in their video prog - Movie Edit Pro 15 Plus..

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2010, 5:17 pm 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Thanks very much for all the help. :D

Right!

Now I want to pass the parameters from each page to an adjusting page -
correct and back.

I suppose this is easy as well but it's assumed I know this in my ref book. :?

So:

SONG_TITLE
DELAY_WAIT
SCROLL_SPEED
SCROLL_END

I copy the values from my page (via the script) from each piece, amend them as required by the user. Return the new values to the script. :)

This is for individual practice. I'll set up the band computers myself. :P

The musicians ALL have different screen resolutions, processors etc. :roll:

So I want to add something they can adjust. :wink:

Regards

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2010, 9:13 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Mike,

I've gotten confused here.
Also, it would help me if you didn't use 'page' to mean your sheet music file.

So let me ask 'with the end in mind', would you want to give your users a slider control they could move? And a couple other controls for the top line and end line settings? Or do you intend they type in numbers?

Speaking of numbers... can you say what the range is for each of the 3 initial variables (you preset) and for the 3 variables used for 'offset' or 'adjustment'?

Thanks.

- - - -
You didn't ask, but I'll inject the idea here. Have you considered using an INI file to take care of some of this data? Basically you would have one mastermike.INI file for all your presets (could include presets for each instrument type). And another .INI file for the user's own data.

You did not mention how you were planning to preserve the user's inputs after they exit the Opus Pub. So INI is just one way. Opus handles writing and reading to/from them easily.

Example of INI file structure (Just one way among many possible. ): http://en.wikipedia.org/wiki/INI_file
Quote:
; last modified 1 April 2001 by John Doe
[owner]
name=John Doe
organization=Acme Products

[database]
server=192.0.2.42 ; use IP address in case network name resolution is not working
port=143
file = "acme payroll.dat"


Also for Opus purposes you could use a simplified form without the "somename = " part. However that means you would have to know and be accurate about what data was where in the file and section. For example:
Quote:
[input001]
a line of some information here
short info one
74
12.4
10
any useful info here (this is line 6 in this section)


[input002]
I might 'standardize' and put all titles in the first line
maybe author or composer here
23
43
21334



[input003]
Take the Night Away
Bill Melater
54
65
18
34
87
23


[setA001]
This is in an INI file___setA001 line1
Line2__is here (next line has a comma)
What to find, depends on what is selected
Line4 this is line4
45,23,15,29
Last line in setA001 for now___line 6


Note: that last example may NOT be so good to implement 'as is', but should give you an idea that you have all sorts of flexibility. I included it in the discussion because OpusPro can easily 'navigate to' or 'find' each Section by name... and then it is your choice whether you want to step through by line and read-in the whole line (or use the naming convention shown earlier).

I trust this helps rather than confuses.

You wrote:
Quote:
I want to pass the parameters from each page to an adjusting page - correct and back.
It might be simpler to start off with your 3 'preset values' and also have some default adjustment values (zero or otherwise). Use them in pairs... i.e., preset1 + adjust1. Then let the User modify adjust1. Of course you'll want all the adjustment values to be 'saved to disk file' or 'written to registry', right?

Larry

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 8 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group