Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: SetImage
PostPosted: December 14th, 2004, 12:29 pm 
I want to set the Background image to a page via a script from a variable <JPG1>. What is wrong here?..excuse my ignorance as I am slowly trying to get my head around the scripting :)

ImagePath = <JPG1>
Page1.SetImage(ImagePath)


Top
   
 
 Post subject:
PostPosted: December 14th, 2004, 12:59 pm 
Offline

Joined: November 3rd, 2004, 2:35 pm
Posts: 117
Location: Swansea, South Wales
I don't think your need the <>s around a variable when it's used in a script - only when you're displaying in the opus editor?


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 14th, 2004, 2:05 pm 
Thanks got it to change an image object fine with removing the <> but still not sure how to change Page background.


Top
   
 
 Post subject: Slideshow
PostPosted: December 14th, 2004, 2:51 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
Dave --

Create a Slideshow Object the size of your Page. Turn OFF the Autostart. When you want the background image to change, use Slideshow Forward, or Go to Specific Slide #.

Why do you guys always want to solve problems with scripting? That's what the "poor" folks who use Director have to do (and that's the main reason I don't use Director's Lingo). You can do almost anything in OPUS without scripting. Keep your life simple.

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


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 14th, 2004, 3:21 pm 
I agree a bit...but for this I need it to be selectable by the user...ie he or she can add there own background via the 'Save browse as' action and this path will be stored as the JPG variable.


Top
   
 
 Post subject:
PostPosted: December 14th, 2004, 10:47 pm 
Offline

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

Thank you for your enquiry.

You cannot currently change the page background dynamically. However, you could create an image object the size of the page and ensure that this is set behind other page objects.

In the properties of the image object, type the following into the File name field:

<image>

Now add a button to the page and apply a File Browse action to the button (this is found under the File Management group of actions.

Click the 'New Variable' button and create a new variable named image with a default blank text value (or specify the path to the image you wish to display by default).

Now click Apply and OK to confirm the changes and preview the page. Clicking on the button should display a File Browse dialog allowing you to navigate to and select an image file. Once selected, click Open and the image in the background should change to display the selected image.

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


Top
 Profile Visit website  
 
 Post subject: Many thanks
PostPosted: December 15th, 2004, 10:55 am 
Perfect....Works a dream..and so simple....


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

All times are UTC [ DST ]


Who is online

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