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 protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling%40apple.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
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]