I've got a published input on a splitter at the top level for a
user setting, and some Javascript that uses that value. After I
open the file in QC, the Javascript runs before the input splitter
has a defined value (or before the input has taken it, anyway). If
I stop and start the composition, it has a value.
Two suggestions...
1. Define the input splitter as an index instead of a number.
2. Use the following in your javascript:
if (!outputs[0]) { ...
instead of:
if (outputs[0] == null) { ...
It will catch the following values - null, undefined, "", 0 and
false. Sometimes I think certain patches are passing "0" or "" as a
string or even undefined, none of which equate to null, I don't think.
Also, the done signal from Spotlight Images is only temporarily set
to true when completed. It turns to true then back to false again
after about a second, same with the image downloader done signal and
the RSS Feed and probably others too.
Sam
------------------------------------------
Sam Bauers