Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Pad selectors(or "radio" selectors)

Post any examples or modules that you want to share here

Re: Pad selectors(or "radio" selectors)

Postby Nubeat7 » Tue Nov 04, 2014 8:16 am

well, the preview in the properties is a great feature, i always forget about this.. :)
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Pad selectors(or "radio" selectors)

Postby djbrynte » Tue Nov 04, 2014 9:24 am

great work!
djbrynte
 
Posts: 613
Joined: Mon Jun 22, 2009 10:51 am

Re: Pad selectors(or "radio" selectors)

Postby billv » Tue Nov 04, 2014 10:17 am

Note Small Bug :
(.to_f) needs to be removed twice in code..
output 'altVal', @altValue[@sel].to_f
the conversion to float in the alt_value output prevents string/int output ...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Pad selectors(or "radio" selectors)

Postby Nubeat7 » Tue Nov 04, 2014 1:36 pm

yes, thats a question of what you need as alternative outputs, i took .to_f because i thought that this would be a common use for it, but sure if you need string you don't need to add anything and you can get rid of the ".to_f" also if you need int but if you need floats you need to add ".to_f" maybe you could just comment it, so it just nneds to be uncommented when floats are needed...

it also depends if you are using the ruby value, then it will always be sent as string if you don't convert it, while if you use green outs, the outs would convert it, then you dont need to add anything..

alternative to make it userproof you could make a selector in the properties and output with cases...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Pad selectors(or "radio" selectors)

Postby Nubeat7 » Tue Nov 04, 2014 1:57 pm

just like this..
Attachments
Pad Selectors_nubeat2.fsm
(84.4 KiB) Downloaded 996 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Pad selectors(or "radio" selectors)

Postby billv » Tue Nov 04, 2014 9:41 pm

Nubeat7 wrote:make it userproof you could make a selector in the properties and output with cases

yeh,much more practical...Nice.. :)
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Pad selectors(or "radio" selectors)

Postby billv » Fri Dec 05, 2014 11:22 am

taking nubeat7's mod a little further, and a bit closer to Trog's example that
inspired the initial idea, here's one with rows and columns..
Pad Selectors_BV_RowsandColums.fsm
(99.57 KiB) Downloaded 996 times
Last edited by billv on Sun Dec 07, 2014 1:21 pm, edited 1 time in total.
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Pad selectors(or "radio" selectors)

Postby RJHollins » Fri Dec 05, 2014 2:52 pm

fantastic billv !
8-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Pad selectors(or "radio" selectors)

Postby billv » Sun Dec 07, 2014 1:29 pm

Thanks RJ.
I found also by changing the order of just two lines of code, instead of incrementing
on the Y axis, can do the X axis as well. The whole module just "flips" around... :lol: :D
So I re-uploaded it...you can set the new "Direction" parameter in properties.
Cleaned up the code a bit....
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Pad selectors(or "radio" selectors)

Postby Walter Sommerfeld » Wed Dec 10, 2014 12:26 pm

Hi billv,

awesome part this RowsandColums.fsm...!

Can u change it 4 me so i can (de-)select multiple pads while dragging ?

cheers,
Walter
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany

PreviousNext

Return to User Examples

Who is online

Users browsing this forum: No registered users and 11 guests