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

Ruby for noobs!

Post any examples or modules that you want to share here

Re: Ruby for noobs!

Postby aronb » Sat Feb 22, 2014 8:59 am

I just tried the XY Pad and while it works for XY values it does not work with presets on my machine either (xy pad01.fsm)

Any clues or updates on the xy pad???

Thanks,

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: Ruby for noobs!

Postby Jay » Sat Feb 22, 2014 10:20 am

works fine here for me m8!

after you set the pad to a position you want to store in the preset, click the name button on your preset manager, it will highlight the program name in blue, press return, now move to another preset and do the same proccess again, now flick between the two presets! should work!
Jay
 
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Ruby for noobs!

Postby Nubeat7 » Sat Feb 22, 2014 3:55 pm

yes, presets should work!

anyway here`s a small update:

- joystick(or how should i call it?) stays completely inside area now
- joystick is an ellipse now (no rounded rectangle)
- included readout
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Ruby for noobs!

Postby aronb » Sun Feb 23, 2014 8:26 am

Yes...

I see, I was not setting the value by highlighting the "program 1", etc.
It makes sense now, but it works a bit differently the say sliders and knobs. To "preset" a knob or slider you can just set it and go to the next preset, upon returning to that preset the knob or slider updates - without ever needing to highlight the program.

I looked at the Ruby code and it looks as though when the left mouse button releases it updates x and y (of course)... but to my "Flowstone Ruby Noob" brain I expected it to work in the same way as the sliders and knobs thus my confusion.

Again the Ruby code seems to be "sending" the info to the preset the same way as other GUI components (knobs and sliders) and yet you have to highlight - which is fine now that I know. Just seems a little different to me that all.

Thanks for the help - you all ROCK!

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: Ruby for noobs!

Postby Nubeat7 » Sun Feb 23, 2014 2:09 pm

ok i see, you are right aron (@walter sorry, just got it this time what you meant :oops: )

looks that the input from 2 preset parameter prims did mess it up..

using presetparameter array seems to work correct

tell me if there are still any issues
Attachments
xy pad 02.fsm
(25.12 KiB) Downloaded 1312 times
Last edited by Nubeat7 on Mon Feb 24, 2014 12:11 pm, edited 1 time in total.
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Ruby for noobs!

Postby aronb » Sun Feb 23, 2014 11:22 pm

You are Awesome Nubeat7 - Works PERFECTLY NOW ! ! ! ! ! :D

That was the ticket - wish I was as skilled a programmer as you... but I am trying!

Next thing is continuous rotating knobs. Already posted a new thread for this one...

My "big project" is making a stage lighting system touch interface (Win 7 touch screen monitor) and so I need to make knobs and buttons that work in the real world work in Flowstone... Its getting there!

Thanks again !

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Previous

Return to User Examples

Who is online

Users browsing this forum: No registered users and 96 guests