Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 19th, 2024, 9:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Incremental increase of integers
PostPosted: December 27th, 2007, 4:05 am 
Offline

Joined: December 27th, 2007, 3:46 am
Posts: 1
Hello,
I am trying to make a publication where I want to show incremental increase in temperature.

Lets say I want a text or button to display 25 deg Celcius. I want this number to increment by +1 until it reaches say 80 deg celcius.

What is the best elegant way to achieve this? I am guessing using a script, but any pointers would be helpful.

I have been able to make it work by creating a variable inside a text box and then using +1 function consectively to actions.

I am sure there is a better and more efficient way to do this.
Thanks for any help in advance


Top
 Profile  
 
 Post subject:
PostPosted: December 27th, 2007, 9:39 am 
There can be many different ways of achieving the same result in Opus. It won't surprise me to see that you receive 5+ different techniques as suggested alternatives. I can see at least 3 ways of doing this, but as I'm flying off for a break in a few hours, I haven't time to outline them for you -- but I'm sure others will help you out.

Long ago I found that searching for the best and most efficient way of doing something could be (and I'm generalising here) a bit like a dog chasing its tail -- and overall, in practical terms a waste of time.

Let me ask 3 questions:

1. If multiple methods produce the same result, how do you judge which is the best? And, does it matter?

2. How are you going to measure the degree of effectiveness of the different methods?

3. Why does it matter? Opus is designed in such a way that the end user is not likely to be concerned with the methodology you choose. In fact, you are likely to be the only person who will appreciate the elegance of the solution, and like I said at the start, does this really matter? :D

I'm not meaning to be negative here -- I find that I prefer to find practical solutions which slot easily into my projects.

All that said, I expect you to be inundated with lots to choose from.

Lots of luck.


Top
   
 
 Post subject: Increasing Variable
PostPosted: December 27th, 2007, 1:42 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Welcome New York (gotham) --

Please go to your Profile, and in the Signature add info on your computer hardware, software, and what version of OPUS you are using. That stuff helps when you have a question.

1) I created a Text Object, then added a Variable called "Trucks."
2) Under the "Actions" tab, I created a Trigger of "On Show"
3) Under the Trigger, I created five Actions:
Trucks = 25 // This sets "Trucks" to "25" when first viewed
Delay 4.00 // This is how long my sample waits before starting to increment
Loop while Trucks < 80 // Under Programming is the "Loop" function. I could have used Loop 55 times, but decided to use "Loop while condition is true"
Delay 2.00 // This makes each increment wait 2 seconds before the next one occurs
Add 1.00 to Trucks // Under Programming Variables I selected "+ Add" then used "1" as the amount to increase Trucks each time.

Click on the attachment to see it better. You don't always have to use Scripts.

The "Consecutive Action Group" I believe you referred to causes Actions to occur one at a time, while "Simulaneous Action Group" makes Actions happen all together. These are NOT what you want to use for this effect.

Merry Christmas


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

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 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