How to custom knob animations ?

For general discussion related FlowStone
Post Reply
User avatar
zayne
Posts: 24
Joined: Mon Apr 10, 2023 11:58 pm
Contact:

How to custom knob animations ?

Post by zayne »

If anybody knows how to add custom Knob animations please let me know. I have custom animated knobs made with knobman but can’t figure out how to get it working it in Flowstone.

I was also having trouble resizing knobs.
ZAYNE
R&R
Posts: 474
Joined: Fri Jul 15, 2022 2:28 pm
Contact:

Re: How to custom knob animations ?

Post by R&R »

Spogg posted a really good knob here:
http://www.dsprobotics.com/support/view ... 60#p237017

I never used it completely as it was... But it seems to be resizable as it is.
Just load your knobman animation enter the correct width and cells (frames) of the animation in the modules properties... and resize the module accordingly.
User avatar
zayne
Posts: 24
Joined: Mon Apr 10, 2023 11:58 pm
Contact:

Re: How to custom knob animations ?

Post by zayne »

R&R wrote:Spogg posted a really good knob here:
http://www.dsprobotics.com/support/view ... 60#p237017

I never used it completely as it was... But it seems to be resizable as it is.
Just load your knobman animation enter the correct width and cells (frames) of the animation in the modules properties... and resize the module accordingly.
this is exactally what i needed thanks for linking this :D
ZAYNE
User avatar
zayne
Posts: 24
Joined: Mon Apr 10, 2023 11:58 pm
Contact:

Re: How to custom knob animations ?

Post by zayne »

i want to make knobs that are custom sizes and not locked to Square. Currently dont have a method but im trying to figure it out.
ZAYNE
R&R
Posts: 474
Joined: Fri Jul 15, 2022 2:28 pm
Contact:

Re: How to custom knob animations ?

Post by R&R »

I'm a newbie and not that versed in Flowstone but I can always attempt to clarify what you are asking for... maybe someone else can help you then...
zayne wrote:that are custom sizes and not locked to Square.
Do you mean a knob size that is not locked to the size of Flowstone's grid-system?...

If so you will probably have to dive into and customize parameters of that knob and maybe alter some of it's schematics. There is no limitation in that regard, any graphics can be set to pixels precision if needed.

Same probably applies if you want a non uniform (ellipse) shape for a knob...

But of you are looking for a way to create a non square/quadratic clickable area that a knob uses to detect mouse actions (clicks and dragging). I personally don't really know if that can be done, atleast not without splitting into separate clickable quadratic areas. I haven't tested if the area clip prim can be used for mouse areas... or if Ruby can be utilized for detecting mouse actions in a non quadratic areas.
User avatar
zayne
Posts: 24
Joined: Mon Apr 10, 2023 11:58 pm
Contact:

Re: How to custom knob animations ?

Post by zayne »

zayne wrote:that are custom sizes and not locked to Square.
Do you mean a knob size that is not locked to the size of Flowstone's grid-system?...
[/quote]

I have knobs that are 50x20 pixels instead of most knobs that are 50x50 or just locked into squares
I attached an example knob i made.
When i put this knob into the spogg one it just doesnt work properly. And i dont want it to be square because it will mess up the gui.
Attachments
Filter Ammo Test 1.png
Filter Ammo Test 1.png (12.77 KiB) Viewed 14363 times
ZAYNE
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: How to custom knob animations ?

Post by Spogg »

Here you go. Info in the schematic.
Attachments
Rectangular knob dev 1.fsm
FS 3.06
(36.11 KiB) Downloaded 599 times
User avatar
zayne
Posts: 24
Joined: Mon Apr 10, 2023 11:58 pm
Contact:

Re: How to custom knob animations ?

Post by zayne »

Spogg i am So thankful !!!! All my knobs with weird dimensions are working perfectly now !!! :)
ZAYNE
Post Reply