rick
Guest
Sat Jul 24, 2010 2:09 am
I have a generic logic gate that the device inherit their parameters
from the symbol (L, W, F, M) and would
like to have one button that will change all 4 devices form F to M
(fingers to multiplier). The devices already
have M and F so this would be a hook on the symbol. The current
implementation uses pPar("name").....
pPar("fingers_x") where _x is the device so there are 4 in
total.
option 1
Fingers count can be manually set to a value
Multiplier not editable and reset to 1
option 2
Fingers not editable and reset to 1
Multiplier is set to 2
Is this possible?
Thanks
Rick
Andrew Beckett
Guest
Tue Jul 27, 2010 10:36 am
rick wrote, on 07/24/10 00:09:
Quote:
I have a generic logic gate that the device inherit their parameters
from the symbol (L, W, F, M) and would
like to have one button that will change all 4 devices form F to M
(fingers to multiplier). The devices already
have M and F so this would be a hook on the symbol. The current
implementation uses pPar("name").....
pPar("fingers_x") where _x is the device so there are 4 in
total.
option 1
Fingers count can be manually set to a value
Multiplier not editable and reset to 1
option 2
Fingers not editable and reset to 1
Multiplier is set to 2
Is this possible?
Thanks
Rick
Yes. This would be done with appropriate CDF callbacks in the CDF for the logic
gate.
You would need to have callbacks for the editable field for each of the fingers
and multiplier parameters which returned t/nil appropriately based on the value
of the "option" parameter.
Also, you'd want a CDF callback on the "option" parameter which did the
resetting of the finger/multipler parameters to 1 as appropriate.
Regards,
Andrew.