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: Image struct in iterator



On 10/08/2005, at 2:44 PM, Dave Hayden wrote:

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

Viveka Web

email@hidden
http://www.viveka.net.au

PO Box 1232
Strawberry Hills, NSW 2012

_______________________________________________
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: 
 >Image struct in iterator (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.