Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 10:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Can I move by variable? (CREATOR)
PostPosted: December 11th, 2006, 4:05 pm 
Offline

Joined: June 14th, 2005, 3:24 pm
Posts: 56
Hello, seeing as there is no area for Opus Creator, I thought I's post in here as it seems to be the most active part.
I am looking to move an object by a certain amount, determined by a variable. Is this possible in Creator or do I need to be able to use scripting to do this (which Creator doesnt have)?
thank you in advance


Top
 Profile  
 
 Post subject:
PostPosted: December 11th, 2006, 6:08 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
Hi

I'm afraid I can't think of any way to
get this done without scripting
Perhaps you might consider upgrading

Cheers
Chris

_________________
Opus Resources and Services


Top
 Profile Visit website  
 
 Post subject: Scripting
PostPosted: December 11th, 2006, 6: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
Scripting is the only way you can move an Object by a Variable, so you will need to Upgrade to OPUS. Go to OPUS XE, then you'll have ALL the power of OPUS.

The good news is this is very simple in OPUS. I created a Text Input Object and gave it a Variable name of "MoveMe." Then I created a Button Object, which by default already has a "Left Mouse Click" Trigger. I selected the Programming Tab (next to Action), then selected "Script".

To see samples and explanations, go to the Organizer and click the "Script" tab, then go down to "Graphical Objects" and highlight "MoveX". Right mouse click and select "Go To Help". You will see the Syntax "MoveX(PosX,Time,Wait) with explanations for each parameter. See the Example:

myImage.MoveX(50, 2.0)

This means you type the name of the Object you want to move (make sure it's one word without spaces), then a period, then "MoveX", then in parens put the amount you want to move, then the amount of time you want to take it to move. You can replace the fixed amount of movement with a previously created Variable:

myImage.MoveX(MoveMe, 2.0)

The Object "myImage" will move the Variable amount of "MoveMe". If it's a positive number it will move to the right. Negative numbers move left. It will take 2.0 seconds to move. If you want to move Vertically, use MoveY.

_________________
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 76 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