« Return to Thread: Full Screen with Quartz Composer

Re: Full Screen with Quartz Composer

by Scott Wilson-8 :: Rate this Message:

Reply to Author | View in Thread

There is a problem with the QCView class in that you can either forward all mouse and key events to the composition, or not. There's no way for SC to capture them.

Based on a quick look, this can be solved with the 10.5 version of QC, but 10.5 only features probably won't be in SC for some time for compatibility reasons.

A hacky workaround is to use the Keyboard patch in your composition, publish the output, and regularly poll it to see if a key is down.

Sorry, for the moment that's the best you can do I think.

S.

On 14 Jan 2008, at 23:42, Gregory Cornelius wrote:

Hi everyone,

I am using supercollider and quartz composer in a visualization project, but I have run into a small hiccup.   
The keyDownAction method works fine on an empty window to toggle full screen, but when I add the QC stuff it doesn't respond.    Do I have to use a SynthDef on the server paired with OSCresponder?

(
w = SCWindow("ligeti", Rect(0, 0, 800, 600), border:false);
w.view.background = Color.black;
w.view.keyDownAction = { arg view, char, modifiers, unicode, keycode;  
[char, keycode].postln;
if (keycode == 53, { 
w.close;
});
};
m = SCQuartzComposerView(w, Rect(0,0, 800, 600));
m.path = "/Users/gcorne/Current_Projects/ligeti/ligeti.qtz";
w.fullScreen;
w.front;  
)

Thanks in advance,

Greg
_______________________________________________
sc-users mailing list


_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

 « Return to Thread: Full Screen with Quartz Composer