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: Procedurally connecting multiple patches within Cocoa App



It hasn't been updated for Leopard indeed

On Nov 18, 2007, at 5:07 PM, vade wrote:

Hello.

Another question

http://developer.apple.com/technotes/tn2005/tn2143.html

Does not mention QCImage as a type for passing. Is this technote out of date?


On Nov 16, 2007, at 8:17 PM, Troy Koelling wrote:

I can't think of anything specifically designed to show this in the examples, but maybe someone else will correct me with a perfect example :)

The old QCTV example would be a good place to start. It uses many compositions composited over eachother to display one unified display. Except that instead of compositing them together, you will want to instead get the
valueForOutputKey:"outputImage" ofType:"QCImage"
and then
setValueForInputKey:"inputImage"
on the next renderer.


Troy

On Nov 16, 2007, at 4:48 PM, vade wrote:

Hi Troy, thanks for the info.

I am indeed targeting 10.5 only. Is there any example code that I could take a look at?,Ive been toying with the Composition loader, but this also requires a bit of pre-knowldge as to what/how the patch(es) will be set up. Id like to handle this myself.

I am very glad to know this is possible!

Thanks again,



On Nov 16, 2007, at 5:36 PM, Troy Koelling wrote:

The Composition Loader patch was built for this within compositions. However, it seems you may not know ahead of time what the inputs might be and you are not afraid of code so that is possible too.

You can query a composition for its input and output keys, and you should be able to bridge the two together. If you are using Leopard, make sure to use the QCImage type when passing images. You cannot get any pixel data or display this opaque type, but it will be most optimal if the image is going right back into QC.

Troy

On Nov 16, 2007, at 2:07 PM, vade wrote:

Hello

I am in the process of writing a Cocoa application using QC. I have a folder full of "effects" (QC compositions) within my bundle which contain published image inputs and image outputs.

I would like to be able to procedurally connect one effect patch (the above QC comps) to another, and dyamically add and remove effects from a particular chain. (these may or may not adhere to a specific protocol, so lets assume im not dealing with consumer or provider style patches, just patches that have consistent published inputs and outputs).

Is there any reference/example code for connecting the input of one patch to the output of another, within cocoa?

I only need one QCView within my cocoa app, which contains a billboard (for example).

So, in short, how does one dynamically patch published inputs to other patches published outputs within Cocoa?

Thank you very much,

_______________________________________________
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




_______________________________________________
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

________________________________ Pierre-Olivier Latour - email@hidden Technologist - Apple, Inc.



_______________________________________________
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: 
 >Procedurally connecting multiple patches within Cocoa App (From: vade <email@hidden>)
 >Re: Procedurally connecting multiple patches within Cocoa App (From: Troy Koelling <email@hidden>)
 >Re: Procedurally connecting multiple patches within Cocoa App (From: vade <email@hidden>)
 >Re: Procedurally connecting multiple patches within Cocoa App (From: Troy Koelling <email@hidden>)
 >Re: Procedurally connecting multiple patches within Cocoa App (From: vade <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.