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

Quick Question

Post any examples or modules that you want to share here

Quick Question

Postby Nickateenbeats » Sat Jan 19, 2019 6:42 am

Hey guys...i have been reading the manual so in the meantime i have been making some UI stuff like the slider in the example below, now...i was wondering if anybody knew how to animate it so that the bar fills with the green as you slide it right and drains as you slide it left? I know the whole frames deal but is there any quicker way?
Attachments
slider.png
slider.png (346.47 KiB) Viewed 12730 times
Nickateenbeats
 
Posts: 37
Joined: Tue Jul 24, 2018 11:32 pm

Re: Quick Question

Postby nix » Sat Jan 19, 2019 7:59 am

it's probably best to use a knobstrip, ie. frames-
but there's no reason you couldn't draw the line as a 'vector'
type line in the toolbox and you'll find the 'line' prim, or 'filled rectangle'-
the shapes can be drawn by FS
8D
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Quick Question

Postby Nubeat7 » Sat Jan 19, 2019 7:47 pm

viewtopic.php?f=3&t=923&hilit=+slider
here you can find some horizontal faders i did a long time ago, not sure how they work with actual fs version maybe they would need a bit of optimising and overwork for newer versions of fs.. anyways you should find all the logics and technics to draw horizontal, in one direction ore bidirectional.
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Quick Question

Postby nix » Sat Jan 19, 2019 8:10 pm

oh yes- of course Ruby code can do some amazing and relevant things with vector and raster images
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Quick Question

Postby wlangfor@uoguelph.ca » Tue Jan 22, 2019 4:24 pm

There's an example that's almost identical to what you are trying to achieve in the AyePedro Schematic by MvdLee:

http://www.naiant.com/SM/index.php?dir=SM Forum Attachments/Schematics

Just press ctrl+f and search for "ayepedr"; there's 4 or so results.
My youtube channel: DSPplug
My Websites: www.dspplug.com KVRaudio flowstone products
User avatar
wlangfor@uoguelph.ca
 
Posts: 912
Joined: Tue Apr 03, 2018 5:50 pm
Location: North Bay, Ontario, Canada

Re: Quick Question

Postby wlangfor@uoguelph.ca » Wed Jan 23, 2019 6:45 pm

I converted that image You're making to a knob for You for practice because I'm making something similar with a vertical slider. Mine has a steel slider but the same track. It uses no images all code.

It doesn't have the inner part. You would achieve that by adding fellipse (filled ellipse) as well as a sunburst gradient after that using the yellow view wire. The last means the one on top. The first one is the bottom - Should not be too hard for You.

Make sure to look for something called area shrink. That's very handy for adding a centered object such as the glowing thing in the middle of Your knob image.

Image

I used MvdLee's example but switched the drag over to a dragx accumulator and I removed superfluous math that was un-necessary.

And Here's the file:

Download: nick knob.fsm initial example (6.59 KiB)
My youtube channel: DSPplug
My Websites: www.dspplug.com KVRaudio flowstone products
User avatar
wlangfor@uoguelph.ca
 
Posts: 912
Joined: Tue Apr 03, 2018 5:50 pm
Location: North Bay, Ontario, Canada


Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 36 guests