« Return to Thread: Full Screen with Quartz Composer

Re: Full Screen with Quartz Composer

by Sam Pluta :: Rate this Message:

Reply to Author | View in Thread

Here's a nice "solution."  The ole invisible window trick:

w = SCWindow("Quartz", SCWindow.screenBounds);
q = SCQuartzComposerView(w, Rect(0,0,w.bounds.width, w.bounds.height));
x = SCWindow("", w.bounds).alpha_(0.0);
x.view.keyDownAction = { arg view, char, modifiers, unicode, keycode;  
[char, keycode].postln;
if (keycode == 13, { //closes on "w"
w.close;
x.close;
});
};

w.front;
x.front;

Sam

On Jan 14, 2008, at 6:42 PM, 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@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users



myspace.com/sampluta
myspace.com/exclusiveor
myspace.com/glissandobinladen






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

 « Return to Thread: Full Screen with Quartz Composer