Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:52 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Hide syntax
PostPosted: December 21st, 2009, 1:15 am 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Hi

I'm new to scripting and baffled by what is probably quite simple. :oops:

I have two objects:

WatchThisObject

and

DoThisObject

In my script function which is started by pressing the space bar, I can only use DoThisObject which hides, or the function hangs.

I'm entering it in the function like this:

DoThisObject.Hide()
Leave a line
WatchThisObject.Hide()
Leave a line
This is followed by a for (i=0 ........) command.

What am I doing wrong please? :(

Thanks

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 21st, 2009, 2:24 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
Glad to see you're getting back speaking to computers.

Your description and/or details only give me a vague clue about what you're doing. As you know in programming, 'the devil is in the details' (and syntax, and flow, and...)

So I'll just throw out a bunch of ideas.

1. presumably you have syntax correct for declaring your "script function".
2. presumably the syntax is correct in the for-statement. (note the semicolons)
3. for testing purposes, I suggest putting in a brief wait state after actions. could be wait(0), or wait(2.5) etc.
Also, put in some debug commands at those same steps. e.g.,
Code:
Debug.trace( "Here I am testing the first hide:  " +DoThisObject.IsShowing()+ "  \n" )


Once you narrow down what's broken, or can see some error messages, or post your code intact --- I'm sure someone can eyeball a solution.

Cheers,
Larry

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


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2009, 2:59 am 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
Hi Larry
I've added them to your program which you kindly sent me.
See what you make of the attached:
Regards
Mike


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

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 21st, 2009, 3:00 am 
Offline

Joined: February 11th, 2005, 1:03 am
Posts: 185
Location: Yorkshire UK
Opus: Pro 9.3
OS: Windows 7
It's 2.01 in the UK so I'm off to bed.
Guess you're in the USA.
Catch you later.
Mike :lol:

_________________
I'd like to begin by saying, " It gives me great pleasure.....
Plato award winner 1999.
Several computers.
HP - Phenom Quad 2.3Ghz; RAM 4Gb, Windows 7 - 64 bit; 3Tb collective Hard disks; Nvidia Geforce 9600 GSO; Opus 9.3; Tascam2488


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 21st, 2009, 4:42 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
Code:
WatchThisObject.Hide()
This command will not find a matching object. Check your object names. (closely) :P

Code:
PageTurning_Bar.Hide()
You left this line in, but deleted the object it references. Does not seem to be a problem yet, but I would go ahead and delete that code and the line or two above/below it (containing the MoveX comman).

Good to go now. Keep plugging... unless you're totally 'acoustic'. :wink:

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


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: Google [Bot] and 42 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