Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 6th, 2025, 10:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Moving a frame object
PostPosted: February 17th, 2005, 2:10 pm 
Offline

Joined: February 17th, 2005, 2:04 pm
Posts: 2
I am trying to move a pointer around a picture of a floor plan and position it accoording to a DB of absolute x/y values.

I have created an Access DB which contains the Absolute position of the centre of each room, and then when querying the Db returning the value into a variable. (this works so far as the position variables are also displayed within the publication ok) The next step is to take the x and y position variables and move a frame to it. Any ideas the best way to do this? I am new to this version of Opus so the scripting is new territory to me.


For this message jamest has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 17th, 2005, 2:15 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

You can position an object to specific x and y coordinates using the SetPosition function. Simply apply a Script action after the Database Query action and use the following code:

Code:
Frame.SetPosition(x,y)


where Frame is the name of the frame object and x and y are the variables which store the coordinates.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 17th, 2005, 2:22 pm 
Offline

Joined: February 17th, 2005, 2:04 pm
Posts: 2
Thanks. Its easy when you know how!!


For this message jamest has been thanked by : mackavi


Top
 Profile  
 
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 47 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