* I was looking at using the JS patch as a "controller" of sorts for a basic stateful application (using QC for a UI), but it looks like the interpreter (and all the variables) get reset/fired up constantly. Am I missing something or is there no way to store global variables? Is there a "register" patch or something that I'm missing?
Put your variables outside of the main function, like this:
var someValue = 0;
function (__number outputNumber) main (__number inputNumber)
{
var result = new Object();
result.outputNumber = someValue;
someValue ++;
return result;
}
* Somewhat related, I can't seem to find a way to get input from std I/O or call out to shell commands? Is this really the case? I'm on Leopard - am I just missing something for what I'm searching for in terms of the Patch Creator, as that list looks surprisingly limited.
Surprisingly limited, or surprisingly secure? Remember: If you can call arbitrary shell commands with QC, so can bad guys, and that means you lose.
There's a shell command example plugin (/Developer/Examples/Quartz Composer/PlugIns/) that lets you do this, but it won't work in safe- mode environment (like safari, or QuickTime, or Modul8). This will allow you to call out to shell commands.
-- [ christopher wright ] [email protected] http://kineme.net/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

