Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:30 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Colour of cloned vectors
PostPosted: March 11th, 2012, 8:43 pm 
Offline

Joined: August 21st, 2008, 11:04 pm
Posts: 7
I've produced a motion-graph teaching tool using Opus Pro 05. It has a small car which moves along the bottom of the screen following the movement of the mouse (x-direction only). This movement is recorded in a graph - distance moved vs time. I have a vector circle at point (0,0), which is then cloned at subsequent points. At the end of the time allowed, the user has the option to have another go, and can choose from a palette, what colour car and subsequent line they want next. The RGB of the initial vector is changed to that chosen, and the car is set to the start.

The thing is, all works well in preview mode, but when I publish, every line plotted is of the same colour as the original vector.

I've also tried using Opus Pro 7, but get the same problem. Am I missing something? Has anyone else had this problem?

Many thanks in advance for any help.


For this message mrarhol has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Colour of cloned vectors
PostPosted: March 12th, 2012, 4:52 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
mrarhol wrote:
Am I missing something? Has anyone else had this problem?
What TYPE of Pub are you creating and publishing?
If you are scripting, it might be good to see some of the opusscript code... will have to see the triggers and sequence of actions (change polygon line colour??, and clone vector) to be clear on what you are doing. Or you can post a .imp example here.
Is the original vector by any chance on a Master Page?

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


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Colour of cloned vectors
PostPosted: March 14th, 2012, 11:18 pm 
Offline

Joined: August 21st, 2008, 11:04 pm
Posts: 7
First of all, many thaks for the reply. I'm publishing a stand alone publication, and I've included the .imp file. I am a Welsh speaker, and many of the variables I use, as well as object names are in Welsh - I hope this will not hinder the help you may be able to offer. I cannot understand why the colour changes in the preview mode, but not in the published one.


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


For this message mrarhol has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Colour of cloned vectors
PostPosted: March 15th, 2012, 12:30 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It's the way Opus works, not your publication.

Try this:

1. On the colour, have the coch; gwyrdd; glas stored as paged variables.

2. On the green button, second script after the line:

Code:
var DotClone = Dot_1.CloneObject(amser,dotY)


Add this:

Code:
DotClone.GetChild(0).SetFillColour(RGB(coch,gwyrdd,glas))


It'll get the 'dot' bit of the cloned vector and change the colour to the value stored in the three page variables.

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: Re: Colour of cloned vectors
PostPosted: March 18th, 2012, 2:03 pm 
Offline

Joined: August 21st, 2008, 11:04 pm
Posts: 7
Mack,

I can't thank you enough. This has answered the problem I was having - back to the creating!

:D


For this message mrarhol has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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