Re: [QLab] APPLESCRIPT

565 views
Skip to first unread message

Dan Scully

unread,
Sep 30, 2011, 4:05:08 PM9/30/11
to ql...@lists.figure53.com
Hi Tim-

What kind of projectors are they?  If they are Panasonics, you can use something like this:

If you are sending raw data down a TCPIP connection, the way I found to do this was to have QLab through applescript run a python script (I think I did this because I couldn't find a reliable way to get applescript to spit out values on a random tcp/ip connection).  Below is how I did it before.  I believe in the python script "3002" is the port number - change it as you need to.  In the shell script command, '(#CHA 1)' is the text that is sent (I think this was for a Christie M Series projector).  If you need to send hexadecimal commands, you will need to hack at this.

This may also be useful for those people looking to send commands over telnet.

Feel free to contact me if you have any questions.

Best
Dan Scully

----------------------------------------------------
1) Save the Python script to a convenient place (let's say the HD root) and call it "channel.py"
2) Use the Script Cue in QLab to call it.  Change the IP to the projector IP.  Also, make sure you paste it into the "Applescript" tab of the inspector for the cue, not the "Info" tab. 

APPLESCRIPT
____________
do shell script "python /channel.py 127.0.0.1 \"(#CHA 1)\""


PYTHON
____________
# TCP client example
import socket
import sys

client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect((sys.argv[1], 3002))

data = sys.argv[2]
client_socket.send(data)
data = client_socket.recv(1024)
print "RECEIVED:" , data
client_socket.close()


On Sep 30, 2011, at 3:51 PM, qlab-r...@lists.figure53.com wrote:

Send QLab mailing list submissions to
ql...@lists.figure53.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com
or, via email, send a message with subject or body 'help' to
qlab-r...@lists.figure53.com

You can reach the person managing the list at
qlab-...@lists.figure53.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of QLab digest..."


Today's Topics:

  1. Re: integrated fades.... (Christopher Ashworth)
  2. APPLE SCRIPT (Schroepfer, Tim)


----------------------------------------------------------------------

Message: 1
Date: Thu, 29 Sep 2011 21:42:02 -0400
From: Christopher Ashworth <ch...@figure53.com>
To: "Discussion and support for QLab users." <ql...@lists.figure53.com>
Subject: Re: [QLab] integrated fades....
Message-ID: <755EB631-1E23-4666...@figure53.com>
Content-Type: text/plain; charset=us-ascii

Hi Peter,

On Sep 29, 2011, at 9:29 PM, Peter Dawson wrote:

Further to this, and I'm not sure if it's been mentioned on the list before, or if the behaviour is intended, but I've found that the integrated fade doesn't work on loops. It works on the first time it's played and then doesn't do it anymore. Sorry if this is veering the topic...

Yeah, this is one of those "it could work one of two ways, and both might be correct, and I picked one of them" things.  

There have been requests to add an option for both behaviors, FWIW.

-C

------------------------------

Message: 2
Date: Fri, 30 Sep 2011 12:51:44 -0700
From: "Schroepfer, Tim" <schro...@TFT.UCLA.EDU>
To: "ql...@lists.figure53.com" <ql...@lists.figure53.com>
Subject: [QLab] APPLE SCRIPT
Message-ID:
<68318114E873964A8C9DA...@EM16.ad.ucla.edu>
Content-Type: text/plain; charset="us-ascii"

Hi All-

Was wondering if anyone has a readymade apple script to execute in Qlab that results in sending an message VIA TCP/IP? I want to control the dowsers of projectors. I can connect to those projectors via TCP/IP.

If  you are willing to share or can point me in the right direction please let me know.

Best

Tim Schroepfer

Production Manager
Department of Theater
UCLA School of Theater, Film & Television

310-825-2791
schro...@tft.ucla.edu
2220A Macgowan Hall

[cid:image0...@01CC7F6F.B55F2270]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.figure53.com/pipermail/qlab-figure53.com/attachments/20110930/f12d7e4e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 14216 bytes
Desc: image001.jpg
URL: <http://lists.figure53.com/pipermail/qlab-figure53.com/attachments/20110930/f12d7e4e/attachment.jpg>

------------------------------

_______________________________________________
________________________________________________________
QLab mailing list   (QL...@lists.figure53.com)
WHEN REPLYING PLEASE QUOTE ONLY WHAT YOU NEED! Thanks!
Change your preferences or unsubscribe here:
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com
Follow Figure 53 on Twitter here: http://twitter.com/Figure53

End of QLab Digest, Vol 69, Issue 42
************************************



----------------------------------------------
Please note the new email address:
d...@danscully.com

Schroepfer, Tim

unread,
Sep 30, 2011, 5:36:24 PM9/30/11
to Discussion and support for QLab users.
Dan-

Thank you. This looks like exactly what I need.


Best
  
Tim Schroepfer

Production Manager
Department of Theater
UCLA School of Theater, Film & Television

310-825-2791
schro...@tft.ucla.edu
2220A Macgowan Hall





From: Dan Scully <d...@danscully.com>
Reply-To: "Discussion and support for QLab users." <ql...@lists.figure53.com>
Date: Fri, 30 Sep 2011 13:05:08 -0700
To: <ql...@lists.figure53.com>
Conversation: [QLab] APPLESCRIPT
Subject: Re: [QLab] APPLESCRIPT
Reply all
Reply to author
Forward
0 new messages