There is not currently scripting access to the fade shapes -- that's an interesting example of how it might be used, though!
The only keyboard shortcuts for fade shapes at the moment are the copy/paste fade curves shortcuts.
Best,
Chris
________________________________________________________
WHEN REPLYING, PLEASE QUOTE ONLY WHAT YOU NEED. Thanks!
Change your preferences or unsubscribe here:
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com
> I just did some research and couldn't find a way to modify fade
> shape through script. Could it be possible?
There are two ways of accessing the copy/paste fade shape routines (no
direct way of modifying the shape yet), both slightly clunky:
1. Use UI scripting to call the appropriate menu commands:
tell application "System Events"
tell application process "QLab"
click menu item "Copy Fade Shape" of menu "Tools" of menu bar item
"Tools" of menu bar 1
end tell
end tell
tell application "System Events"
tell application process "QLab"
click menu item "Paste Fade Shape" of menu "Tools" of menu bar item
"Tools" of menu bar 1
end tell
end tell
You'll need to wrap those up in a try block, or make sure you're on a
Fade Cue before calling them.
2. Assign some keyboard shortcuts to these menu items (http://figure53.com/wiki/index.php?title=Hints_and_tips#Assign_.22missing.22_keyboard_shortcuts
), and call them (I use ctrl-cmd-C & ctrl-cmd-V):
tell application "System Events"
tell application "QLab" to activate
keystroke "c" using {control down, command down}
end tell
tell application "System Events"
tell application "QLab" to activate
keystroke "v" using {control down, command down}
end tell
You'll have to play with those a bit to get them to work in the
context of how you are calling the rest of the script (ie: you may or
may not need to activate QLab to make sure it is the target of the
keystrokes).
Rich
On 15 Jun 2010, at 06:26, Steve Lalonde wrote:There are two ways of accessing the copy/paste fade shape routines (no direct way of modifying the shape yet), both slightly clunky:
I just did some research and couldn't find a way to modify fade shape through script. Could it be possible?
1. Use UI scripting to call the appropriate menu commands:
tell application "System Events"
tell application process "QLab"
click menu item "Copy Fade Shape" of menu "Tools" of menu bar item "Tools" of menu bar 1
end tell
end tell
tell application "System Events"
tell application process "QLab"
click menu item "Paste Fade Shape" of menu "Tools" of menu bar item "Tools" of menu bar 1
end tell
end tell
You'll need to wrap those up in a try block, or make sure you're on a Fade Cue before calling them.
2. Assign some keyboard shortcuts to these menu items (http://figure53.com/wiki/index.php?title=Hints_and_tips#Assign_.22missing.22_keyboard_shortcuts), and call them (I use ctrl-cmd-C & ctrl-cmd-V):
> Comments appreciated,
I would put the "display dialog" inside the if block: there's no point
asking about the fade time if the script isn't going to make a fade.
Similarly, everything after the "end if" will only be required if the
Fade Cue is made, so this should all go inside the if block too. The
script will throw an error at the undefined "newCue" variable otherwise.
Also, rather than keep repeating "workspace 1" and "tell front
workspace", I would wrap the whole lot up in this kind of thing:
tell application "QLab"
tell front workspace
end tell
end tell
That doesn't make any difference to the Apple Events that will be
sent, but it does make the script easier to read.
I've found Snow Leopard seems to require delays after some events in
order to notice that the event has happened (UI scripting and
keystrokes mainly); Leopard doesn't appear quite as easy to confuse. I
don't think the delay will be affected by other threads running on the
machine.
By the way I just love the ILive R72 (I'm trying this system right
now), you can just do sooo much with this .......
thanks
Ray