I am looking to generate a random value at the start of a composition and have it remain static until the composition stops and starts again.

I'm assuming JavaScript would be an easy way to do this, and here's what I'm trying so far, to no avail. Any suggestions? I messed around with a sample and hold patch, but couldn't get it to grab fast enough that the value didn't change a bit at the start.

Thanks!

function (__number outputnum) main ()
{
        if(!_testMode) {
 if ( outputnum == null )
       outputnum = Math.random();
       }
}

 _______________________________________________
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]

Reply via email to