| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Does the Mathematical _expression_ patch not work with nested ternary logic? This:(IntegratorResult < Min && Value < 0) ? 0 :(IntegratorResult > Max && Value > 0) ? 0 : Valuedoesn't produce the desired effect when connected to/from an Integrator patch (it looks like only the second conditional is evaluated), whereas the same logic in a _javascript_ patch:function (__number ToIntegrator)main(__number Value, __number Min, __number Max, __number IntegratorResult){var result = new Object();result.ToIntegrator = (IntegratorResult < Min && Value < 0) ? 0 :(IntegratorResult > Max && Value > 0) ? 0 : Value;return result;}works fine.Is this a known limitation of the Mathematical _expression_ patch, and if so, is there some workaround to avoid the overhead of using a JS patch?I've attached a little demo QTZ to show the two methods in action.Cheers,a|x
_______________________________________________
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
| References: | |
| >Maths Expression Error (Or Feature) (From: Alex Drinkwater <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.