Ruby Double Slider

Post any examples or modules that you want to share here
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Ruby Double Slider

Post by trogluddite »

Apologies for being nosey - I'm curious about PM problems at the moment!

The load-time error is because of @vw. The value is set in the 'draw' method, so if 'event' gets called before there has been a re-draw, it hasn't been defined yet. It'll make 'event' bomb out so that the following lines don't run.
You can get the view size using the 'getViewSize' method, though - that works even if you're not inside 'draw'. It gives you an array [width, height], so...

Code: Select all

@vw = getViewSize[0]
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

Thanka guys...look forward to getting home..
Please check my Pm bug post in examples if have time..
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

Nubeat7 wrote:i investigated some time into your doubleslider

Thanks heaps for that...
Nubeat7 wrote:i had found some way to make it work with the stock PM

No, sorry mate...but it's still buggy and not retaining saved values if the user changes
the value.
Nubeat7 wrote: hope you also like it

havn't looked yet, no doubt I will learn something from it... ;)
Nubeat7 wrote:and don't feel highjacked!

don't be silly...you have an open door on my stuff(i'm a hobbyist).. go nuts.. :D
And I did ask for help anyway..all good.
Nubeat7 wrote:anyway if you load the schematic it seems that there is still some issue on loading

been chasing that nil error for long time..(i think trogs got it right..will check later)
Nubeat7 wrote: save and load state methodes and init methodes

yeh...did nothing for me too...
trogluddite wrote:Apologies for being nosey

:lol: :lol: :lol: ...open door policy for you too old man... :lol:
trogluddite wrote:error is because of @vw. The value is set in the 'draw' method

i sensed there was a issue there...hence my cowboy attempt in init section(@vw = @vw) :lol:
Will try it soon..Thanks again.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

trogluddite wrote:the 'getViewSize' method,

This is working great... all 'candy' is gone at startup or after dup..
re-adjusting all my work...thanks Trog
Nubeat7 wrote: its basically the same i just did a couple of methodes

this is awsome nubeat7..the way you guys make up your own def's, something
I havn't gone into yet. i can see its a better way to break everything down
and 'section' everything out( appeals to my chef brain[think ingredients]),
so eventually hope to write that way...but still on the basics ATM....
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

Original version fixed..
Is now working with the FS preset manager.
Does not require afterchange trigger..
getview size fix installed
All extra struff in preset module removed(now uses simple one from trog's knob)
Save/loadstate was included into the "last Switch"' ..
Gui fix...
EDIT:
Minor fix..re-uploaded fsm..
Test_Ruby Double Slider_v2_fix.fsm
(306.68 KiB) Downloaded 1198 times
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

Still not there yet....too many triggers coming out...
Will get it right eventually. .. :roll:
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Ruby Double Slider

Post by billv »

Removed some code causing extra triggers
Last switching removed.
Preset inputs and external inputs were separated and def event recoded..
Clamp from view draw limiters were removed, so that output values are correct

There is also an option available via properties panel called "preset preference"
You can choose weather the slider uses it's own presets, or uses the external inputs instead..
Test_Ruby Double Slider_v3.fsm
(309.56 KiB) Downloaded 1256 times
Post Reply