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 Double Slider

Post any examples or modules that you want to share here

Re: Ruby Double Slider

Postby trogluddite » Sat Aug 02, 2014 12:04 am

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!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Ruby Double Slider

Postby billv » Sat Aug 02, 2014 12:08 am

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

Re: Ruby Double Slider

Postby billv » Sat Aug 02, 2014 6:27 am

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: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Ruby Double Slider

Postby billv » Sat Aug 02, 2014 9:31 am

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: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Ruby Double Slider

Postby billv » Sun Aug 03, 2014 11:17 am

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 1127 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Ruby Double Slider

Postby billv » Mon Aug 04, 2014 9:25 pm

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

Re: Ruby Double Slider

Postby billv » Tue Aug 05, 2014 1:09 pm

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 1175 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Previous

Return to User Examples

Who is online

Users browsing this forum: No registered users and 56 guests