Le 22 déc. 08 à 13:31, Christopher Wright a écrit :
How can I programmatically change an image-with-string patch text
justification ?
It seems the setting is only available in Quartz Composer but
cannot be used as an input-port
Yeah, this is only available in the inspector panel.
I can manually justify the text for a one-line string by computing
the correct coordinates, but for multiple-lines strings,
programmatically accessing this setting would be really helpful.
Not really. However, when the input space is small (as is the case
with text justification), brute force + multiplexers can help solve
this:
<TextAlignment.qtz>
This will pass the input string to 4 string renderers, one of each
flavor. A multiplexer is used to choose the correct one.
Multiplexers intelligently only execute the input they're using, not
all of them, so it shouldn't have a huge impact on performance.
I didn't know the multiplexer patch but I'll definitely adopt it.
This trick will work for me. Thanks a million.
Perhaps I start continue the petition to have inspector panels only
used for patch-altering controls (i.e. number of input/output ports,
etc), instead of things that really should be input controls... not
sure if I brought up that idea on the list before. *shrugs*
Yep. I'll definitely sign this petition.
Thanks,
Jérome
_______________________________________________
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]