Kyma Forum
  Tips & Techniques
  radio buttons

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   radio buttons
rafe
Member
posted 16 December 2009 13:37         Edit/Delete Message   Reply w/Quote
is there a way to access radio buttons as an object within a script?

i was thinking of trying to implement this, similar to a checkbox group in java, as a method of selecting between conditional blocks of code so if one of the buttons is selected the others are automatically deselected.

thanks
rafe

IP: Logged

SSC
Administrator
posted 17 December 2009 10:42         Edit/Delete Message   Reply w/Quote

Raferadiobutton-likebehavior.kym

 
Hi Rafe,

As I understand it, you have several options and you would like to select exactly one of them, is that correct? One way to implement this would be to create an Array of the options and then use a fader to select one of them.

In this example, the following expression acts something like a radio button set. !Selection chooses exactly one of the expressions to modulate the pitch of an oscillator:

code:

(!Selection - 1) of: #({1 repeatingFullRamp} {1 repeatingTriangle} {1 s random})

To label the options in the VCS:
1. Unlock the VCS and Double-click Selection
2. From Options menu in VCS Editor, select Set tick marks and labels
3. Distance between markers is 1
4. Select List as the labels and click Edit
5. Enter the labels: fullRamp, triangle, random (one per line)
6. In the VCS editor, set the grid (in MinMaxGrid) to 1
7. And set ShowNbr to No Nbr

IP: Logged

SSC
Administrator
posted 17 December 2009 10:47         Edit/Delete Message   Reply w/Quote
Alternatively, you could take a look at 'widget sampler.pci' (in the Kyma folder under Xtra Tools). This is the example built in the "Writing your own Tools" chapter of Kyma X Revealed! (page 309) and it includes an example Radio Button (for choosing between Red Pill and Blue Pill).

IP: Logged

rafe
Member
posted 17 December 2009 12:55         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
Alternatively, you could take a look at 'widget sampler.pci' (in the Kyma folder under Xtra Tools). This is the example built in the "Writing your own Tools" chapter of Kyma X Revealed! (page 309) and it includes an example Radio Button (for choosing between Red Pill and Blue Pill).

this section is the impetus for the question but the way tools were organaized i (mis)understood the code to be contained within the frame of the tool. i only scanned through it so i will dig into that section more deeply

the array solution will be a better tactic in the short term.

thanks

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c