Ruby for noobs!

Post any examples or modules that you want to share here
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Ruby for noobs!

Post by aronb »

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
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Ruby for noobs!

Post by Jay »

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!
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Ruby for noobs!

Post by Nubeat7 »

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
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Ruby for noobs!

Post by aronb »

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
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Ruby for noobs!

Post by Nubeat7 »

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 1437 times
Last edited by Nubeat7 on Mon Feb 24, 2014 12:11 pm, edited 1 time in total.
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Ruby for noobs!

Post by aronb »

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
Post Reply