Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to display a directory
PostPosted: October 23rd, 2007, 8:27 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
I know there is a command to display a directory in OPUS , BUT i want it shown in a display box in my pub . I have a bunch of small wav's and i would like it if the client could select the one he wants to watch and drag it to a video box/area and click play and it does its business...


I can't seem to get my head around making this work......


Is it as easy as it sounds LOL

I tried build different types of txt/video boxes or even doc view and telling it to display a directory , but then i get that stupid microsoft generic window and it only allows 1 file to be listed......

Thanks in Advance

Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 24th, 2007, 12:09 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Here is what I did:

Create a trigger, in my case, left mouse click on a button.
First Action = File Browse (it's under File Management actions). You set your file types to be a specific type or types. Store the results to a variable name you create.
Second Action = Play Sound with <VARIABLENAME> as the sound to play.

That's all there is to it.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 26th, 2007, 10:42 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
bwpatric wrote:
Here is what I did:

Create a trigger, in my case, left mouse click on a button.
First Action = File Browse (it's under File Management actions). You set your file types to be a specific type or types. Store the results to a variable name you create.
Second Action = Play Sound with <VARIABLENAME> as the sound to play.

That's all there is to it.



I did as you said and when i go to publish the PUB i get the ERRORS " Cant play <MP3_1> " which is my variable name.......

AL

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 27th, 2007, 12:11 am 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Anyway you could post your pub as a 5.5 version?

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 27th, 2007, 4:38 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
So you don't get that error in 5.5 ????

Al





bwpatric wrote:
Anyway you could post your pub as a 5.5 version?

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 29th, 2007, 12:47 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Al,

I did indeed get the error as you got. To get around it, I added the scripting code from the MP3 thread.

So I had the File Browse action and then followed it up with a script action containing:
var mySound = OpenSound(VARIABLENAME)
mySound.Play()

For videos I had 3 actions. Did not try anything else, but these three actions seemed to work:
File Browse
Show Video Object
Play Video Object

I did not have the video object set to play automatically, so that is why I had the Show and Play actions in there.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group