Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: oscillating ball
PostPosted: March 30th, 2006, 3:23 pm 
Offline

Joined: March 14th, 2006, 11:55 am
Posts: 8
Location: Belfast
Am very new to Opuscript.Followed Graham's bouncing ball and have tried to use the ideas to simulate a ball that is oscillating up and down about a fixed line. Any of you clever people out there who can help as I can only get the ball to drop from the fixed line and come up again to fixed line. It then stops and won't go upwards above the line.

_________________
A.Ashby


For this message alastair ashby. has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Non-Scripting Solution
PostPosted: March 30th, 2006, 11:41 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
I'm in awe of people who create Script in OPUS. I try to keep it simple and NOT use Script if possible. Here's what I'd do:

Create an Image Object and insert a ball image. Create a Frame and position it above and below the fixed line (on the far left side). Now, using the Organizer, Insert the Image Object into the Frame. Now create an On Show Trigger on the Page or any of the Objects. Under Program, select the Simulanteious option, then have an Action of Animation - Bounce Ball up and down, then have an Action of Animation Move Frame Horizontal some distance (I used 1000) at 10 seconds.

On Preview, the Ball should start to move up, but also to the right in an arc. At the top of the arc it starts down. At the end of the distance, I used a Continuous and At End Return.

All this an no Scripting.

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


For this message demofred has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 1st, 2006, 8:53 am 
Offline

Joined: October 25th, 2004, 3:03 pm
Posts: 540
Location: Tyalgum Creek. Australia
Opus: Opus Pro Latest version 9.02 Build 16458
OS: Won 10
System: Asus laptop Intel Core i5 8 gig ram, big monitor, reading glasses
Hi Alistair

You are mistaken. It is not my bouncing ball script - wish it was though.

The bouncing ball script is totally Robin Garrett's brilliant work!

I see the mercurial Fred Harms has applied his awesome knowledge and renown expertise to solve your problem.

Cheers

Graham

_________________
Too much coffee can result in frequent toilet breaks!


For this message Graham Baglin has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Example
PostPosted: April 1st, 2006, 10:56 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
Thanks Graham!

Here's an example of the "bouncing ball (vector)". This may help people understand the Simultaneous feature, and simple animations which do not use Scripts.


Attachments:
Bounce the Ball.imp [17 KiB]
Downloaded 1379 times

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


For this message demofred has been thanked by : mackavi
Top
 Profile Visit website  
 
 Post subject: Bouncing ball
PostPosted: April 3rd, 2006, 1:27 pm 
Offline

Joined: March 14th, 2006, 11:55 am
Posts: 8
Location: Belfast
Thank you all for taking the time to reply to my question. I have solved the initial problem but what i want to do is simulate wave motion (i.e. A sine curve) to enable me to illustrate some physics theory. (I am sadly one of a rare breed - a physics teacher) any further advice would be greatly appreciated.
Fred, I have not as yet tried your suggestion but will in the next day or so.

_________________
A.Ashby


For this message alastair ashby. has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 4th, 2006, 1:06 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi Alastair,

Once you check out Fred's good sample, its animation replicates close to a sine wave, but more like a saw-tooth wave.

If you want to create a sine wave, then why not try using the Animation Path option in Opus? The attached IMP is only a crude example, so I hope this is what you mean by a sine wave curve.

No scripting involved. :)

Hope this helps.


Attachments:
File comment: Opus Pro XE 5.5
BOUNCE2.IMP [24 KiB]
Downloaded 1381 times

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi
Top
 Profile  
 
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 13 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