Mailing Lists: Apple Mailing Lists

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

JavaScript Pre-calculation



What is the proper way to run a JavaScript patch a single time when my composition starts up, and make its output (a large array) available to other patches?

The most obvious way to do this seemed to be to create a JavaScript patch that outputs a constant array (i.e., one that doesn't change over time) and simply tie its output to the input(s) of the other patch (another JavaScript) that needs the pre-calculated array (and whose outputs change over time.) This seemed to work fine (with the array being calculated exactly once) until I closed and re-opened my composition-- upon re-opening, the patch that uses the table seems to not be getting valid data, resulting in no motion in my composition. However, when I make even the tiniest edit to the actual JavaScript code of the patch that uses the table, suddenly things start working. So I presume I'm not doing my hookups correctly.

Thanks,

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



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.