On Sep 27, 2009, at 10:47 AM, Gordon Apple wrote:
Is there any way to force it to
compute and be correct initially?
The renderer does need to run in order for output values to be
correct. I suppose you could have an "initialize" flag on the input
that doesn't render anything so you can warm up the composition and
get the value out. When you say "long after the layer is installed and
the composition is running" do you mean many frames? If it's rendering
more than one frame before you can get the correct value out, there
may be a bug.
Is there any better way to set an
initially-readable output flag value?
Is this really a constant value or is it based on something internally
to the composition? If it's really constant at design time, maybe you
can put an attribute in the metadata of the composition.
In the editor, select Editor > Edit Information...
Add a unique key: com.ed4u.ga.MyValue
Set a constant value for it
---
In your code, get the QCComposition out of the layer (or if you are
setting the QCComposition yourself skip this)
myComposition = [layer composition];
get the attributes:
myAttributes = [myComposition attributes];
Get the value:
if([attributes boolForKey:@"com.ed4u.ga.MyValue"])
Troy
_______________________________________________
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]