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: cant add consumers in macros with published outputs?



playing with macros it seems that if you have a macro with a published output port you can't
add any "consumers" in that macro? (ie no renderers).  It would help to get an error message
when you try and add one instead of the patch just refusing to be added to the composition.

I'm not sure I understand why this is necessary but I'm guessing there is a very good
reason for it :)

If consumers had outputs, they could be connected to other consumers and that can conflict in the evaluation model with their evaluation order e.g. Consumer #1 is set to execute before Consumer #2, but if #1 has an input connected to an output of #2, then it is actually executed first and the whole thing becomes confusing.

this is all well and good but it really reinforces the need for a "debug" patch that prints out
current values to the debug log window.  as it is it's really very awkward to try and monitor
values inside a macro with published outputs.  you can't add a text renderer into that macro
so you actually have to publish the value you want to debug and render it from the root
patch or another patch further up the tree.

Use a _javascript_ patch and its Log() function e.g. a script like

Log(inputs[0]);

or more complex:

Log("\nSome debug value: a=" + inputs[0] + " & b=" + inputs[1]);


________________________________________________________

Pierre-Olivier Latour                            email@hidden

Quartz Composer Architect                Graphic & Imaging Team


 _______________________________________________
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: 
 >first impressions of QC (From: Roger Bolton <email@hidden>)
 >Re: first impressions of QC (From: Pierre-Olivier Latour <email@hidden>)
 >cant add consumers in macros with published outputs? (From: Roger Bolton <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.