Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to produce smooth random motion



For some reason, I can't get System Time to play well with Javascript in the screen saver environment. I'm feeding System Time into a Javascript block and doing

  if ( outputs[0] == null )
    outputs[0] = inputs[0] % 1.0;

to get a "random" number. It works fine in QC, but comes up NaN in the screen saver.

I looked into that and there's a bug in JavaScript support in Quartz Composer. I don't know if there's a workaround it yet.



________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Best way to produce smooth random motion (From: pete boardman <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Dave Hayden <email@hidden>)
 >Re: Best way to produce smooth random motion (From: David Coffin <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Dave Hayden <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Dave Hayden <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Best way to produce smooth random motion (From: Dave Hayden <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.