Thank you. At least that works and solves one of my problems.
"boolForKey"? Great idea for a set of dictionary additions. Wouldn't
happen to have that file lying around somewhere, would you?
I'm trying to set up a few templates for specific types of effects. I
want users who are not versed in Cocoa and minimally versed in QC to be able
to create their own effects by just making a few mods (like specifying an
image file or changing a few parameters. In fact, I may set up an interface
for that so they don't even have to get into QC. But I needed ways to set
flags to distinguish template types, and to enable (or hide) interface
elements, etc.
Now, if I could just get observers to work, so I can observe an output
flag and know when the composition finishes...
On 9/28/09 12:10 PM, "Troy Koelling" <[email protected]> wrote:
>
> 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]