Page 2 of 2

Re: Ruby Double Slider

Posted: Sat Aug 02, 2014 12:04 am
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]

Re: Ruby Double Slider

Posted: Sat Aug 02, 2014 12:08 am
by billv
Thanka guys...look forward to getting home..
Please check my Pm bug post in examples if have time..

Re: Ruby Double Slider

Posted: Sat Aug 02, 2014 6:27 am
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.

Re: Ruby Double Slider

Posted: Sat Aug 02, 2014 9:31 am
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....

Re: Ruby Double Slider

Posted: Sun Aug 03, 2014 11:17 am
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 1200 times

Re: Ruby Double Slider

Posted: Mon Aug 04, 2014 9:25 pm
by billv
Still not there yet....too many triggers coming out...
Will get it right eventually. .. :roll:

Re: Ruby Double Slider

Posted: Tue Aug 05, 2014 1:09 pm
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 1258 times