Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Clearing a text inputbox
PostPosted: September 21st, 2006, 7:32 pm 
Offline

Joined: September 6th, 2006, 9:50 am
Posts: 2
I'm new to Opus and am trying to clear a yext input box, after an object has finished fading. I would like to do this using a script command if possible. Anybody have any suggestions :(


For this message jasmi has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 21st, 2006, 9:16 pm 
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
Jasmi
I'm in a hurry to get to work and I'd have to look up a script solution and that would take too long, but I'll have a look tonight.
As a simple workaround, when you draw a text input box, click the 'new' button beside the variable name and give the input content a variable name.
When the user enters something in the input box, Opus will store the content using the variable name you gave it.
To clear the variable, all you have to do is have some kind of trigger such as a button, or a roll over and use the 'set variable' function. Go to "actions", "programming", 'variables". Just set the variable name that you choose above, to nothing and make sure the radio button, 'overwrite current contents' is selected.
Hope that tides you over 'til later
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:
PostPosted: September 22nd, 2006, 12:12 am 
Offline

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

To add the Graham's comprehensive solution, if your Text Input Box's variable was called <myTextVariable>, in OpusScript you'd have a script action somewhere....


myTextVariable = ""

//makes the contents blank

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 22nd, 2006, 8:22 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 again Jasmi
Forgot to say "welcome to the forum and Opus" - you'll find lots of enthusiasts here.
I see the ever helpful Steve H has answered the scripting question for you!
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:
PostPosted: September 22nd, 2006, 4:10 pm 
Offline

Joined: September 6th, 2006, 9:50 am
Posts: 2
Thanks for the quick solution, You wouldn't believe how long I was trying for.
Slapped the one liner in and hey presto :lol:

Thanks for the welcome


For this message jasmi 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 103 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