Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: Alex.M It is useful when you use one slider to fine tune several independent values (by switching between them) . Alex, I don't understand "completely" your tune several independent values. I suppose you mean adjusting "parameters" wrt model/modeling. That was my comment reply to Sergio/Davide. Keep reading "Samples" that's where you will find model functions already done. The last two typical: Alcotest, Water viscosity. Modeling is a life time addiction, no cure for that except the day I will suck the roots, no urgency for that day ! can't even backward the clocking slider/timer. Cheers, Jean
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Originally Posted by: Davide Carpi I can do it, but this means that the slider will be used just as visual feedback, since any user change triggers the evaluation that restore the input value.
Originally Posted by: Jean Giraud Originally Posted by: Alex.M It is useful when you use one slider to fine tune several independent values (by switching between them) . Alex, I don't understand "completely" your tune several independent values. I suppose you mean adjusting "parameters" wrt model/modeling. Davide and Jean, This is how a predefined initial slider value would have been used for me before and can be used by someone in future: <block of calcs outputs slider value> -> fine tune the value using the slider -> the value to a global variable which is passed back to the block of calcs What I did before: Have two sliders that define XY coordinates of the point. Use only those two sliders to modify coordinates of about 15 points. This would have been possible if the slider value could be preset from the workbook: -> select a point -> slider is positioned at the current point's coordinate -> adjust the slider -> point coordinate is stored in a global variable and becomes the new default position of the slider -> select different point -> repeat To be fair I have abandoned the XY coordinate definition method in favor of using modeler region for that purpose. However the example demonstrates that presetting the initial slider position can be useful in certain cases.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Thanks Alex,
I understand why the slider is useful for you: set the coordinates of a drawing shape. Not like me: tuning parameters of a model function [conjointly OriginLab, Smath Genfit]
Cheers, Jean.
Eastern Canada, still very fresh temperature.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
... forgot one of the most pertinant use of the slider: slide the convolving function [sliding integration]. One of so many RemToDo.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
PLUGIN UPDATED SMath Studio 0.98.5952 Nightly Build only - SMath Viewer: the same slider of the canvas will be used, instead of the standard .NET Trackbar; this makes the project more consistent and solves several bugs even in the worksheet; moreover allows to remove the scale factor;
- Scale factor removed; decimal values are now a valid input.
** if you don't have settings from canvas, transition is fully driven by the region; ** if you have settings from canvas and scale factor != 1, you have to update the input values from the canvas and change the name of the variable that contains the input settings or save and reopen the worksheet (an error message will be shown inside the region, output value will be undefined until you fix the settings);
- Added new key for settings from canvas: "value" (if you want to disable input from users, region will be used just as a visual feedback);
- Added new key for settings from canvas: "initial value" (the value of the region will be set as this value if it changes);
Slider Region.sm (29kb) downloaded 64 time(s).P.S. If everything works fine, I'll relase a stable version for SS from 0.97.5346 to latestEdited by user 07 May 2016 20:43:52(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/03/2016(UTC) Posts: 279 Was thanked: 92 time(s) in 58 post(s)
|
When I show the description of the slider, I receive an exception when trying to open the settings. Picture and Exception text attached. I'm using SMath 0.98 (build: 6077) and plugin version (0.4.6078.4892). exception.txt (26kb) downloaded 37 time(s). |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
Fixed & updated, thank you! |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 22/08/2016(UTC), on 22/08/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,159 Was thanked: 526 time(s) in 352 post(s)
|
A quick question, are there tags to enable checkboxed options? Regards
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
Originally Posted by: overlord A quick question, are there tags to enable checkboxed options? Regards The first should enable a permanent box containing the current value right under the slider track, it does not affect the field on the right. The second should enable the drop down list on the right (if there is the relative canvas setting set, it should be freezed, by design) Edited by user 02 November 2021 21:37:06(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,159 Was thanked: 526 time(s) in 352 post(s)
|
What I meant is if there are tags which can enable them like other tags. for example; "tickValueShow" = 1 --"true" "initialValueShow" = 0 --"false" Regards
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
Originally Posted by: overlord What I meant is if there are tags which can enable them like other tags. for example; "tickValueShow" = 1 --"true" "initialValueShow" = 0 --"false" Regards Ah, got it! Nope, ticksshow is driven by tickPosition=none for off or another value for on. (I might add it, though) The value box should have its own option for sure but IDK why is only partially implemented (I don't remember if there were issues or it was lost and forgot in some more urgent update. I'll give it a closer look) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
PLUGIN UPDATED SMath Studio 0.99.7822 and later- settings from canvas: added options to show "value label";
- settings from canvas: added options to show "tick labels";
- Settings from canvas: extended valid keywords separators
- Settings from canvas: canvas variable now doesn't have anymore to contain only valid settings
- Documentation updated
Edited by user 22 December 2021 14:01:17(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 22/12/2021(UTC), on 22/12/2021(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 12/02/2018(UTC) Posts: 62 Location: Belém Was thanked: 7 time(s) in 6 post(s)
|
Thanks, Davide, for updating the beloved Slider Region! I'd like to make a few suggestions for further improvements: 1) The possibility to have a region with multiple slider inputs, so the output is a vector instead of a number; 2) The creation of a region that bundles together some of the existing controls. For instance: first column is a slider, second column is a comboboxlist, so the output is a vector/matrix. 3) If (1) is implemented, making the setting that controls the number of inputs a variable. In other words, making it dynamic. These functions would considerably facilitate the input of data in the program. In the example below, for each depth value, I need different variables and later group than with another function. Not even mentioning the work in formatting the whole thing and the grotesque text beside: To emphasize the issue, I point it out that I can't set the value to a vector's position, like below: So yeah, I'm stuck to lots and lots of variables, as far as I know. Hope I'm making sense and you consider some of these ideas. Thank you for the great work!
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 12/02/2018(UTC) Posts: 62 Location: Belém Was thanked: 7 time(s) in 6 post(s)
|
Hi, Davide! Sorry to bother, but could you give me a reply on the above? Edited by moderator 15 February 2022 13:51:16(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
Hello and sorry for the late answer. The problem to multiply regions in the same container is how to implement and manage the multiple input/output values (variables, canvas settings, mouse/keyboard actions, serialization, viewer compatibility, etc...) and it might be even harder to manage "conditional inputs“ based on output values of other controls in the same group. Probably a new datagrid region (a table with controls of each type repeated in same columns or rows) would be the most reasonable way to cover all the points using the existing code, but still require a lot of work, and existing regions have to be refactored f.e. to accommodate a flexible layout. I already plan to implement tables in WriterRegion so I'll keep this in mind to reuse the code. As for now in cases like the one in your screenshot I suggest to use a stack/augment approach with fixed output names, and simply copy paste as many times as needed (maybe reserving a whole page for this purpose)., something like the following pseudocode. initialization: regions to copy/paste: Code:{group of n controls; outputs: a, b, c, d... }
M:stack(M, augment(a, b, c, d,...)
then you can use the "M" output |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 12/02/2018(UTC) Posts: 62 Location: Belém Was thanked: 7 time(s) in 6 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 69 Was thanked: 164 time(s) in 128 post(s)
|
Hello Davide,
Concerning the « Slider Object » please add, if possible, a way to increase / decrease finer the value with one increment for each click, by introducing two buttons at the slider’s ends.
Thanks,
IoanEdited by user 24 August 2024 09:29:01(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,689 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
I'll think about it... The mouse wheel should be the default way for the fine tuning of the slider, but I understand some wheels are not good. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2012(UTC) Posts: 69 Was thanked: 164 time(s) in 128 post(s)
|
Thanks for the answer.
My proposal comes from my practice.
So, the slider use is dependent also on the scale of its drawing.
It is very useful to grab the central button with the mouse, but for a fine movement sometimes it is hard enough to find the good step. That’s why I thought that a solution as in the “Numeric up-down” object could be welcomed:
Thanks again
Complementarily subject:
I profit on the occasion, to mention that I observed that the mouse wheel reactions are not the same over a X-Y plot situated in the printer’s zone or outside (no limit canvas selected). I’m interested to know if somebody else observed such a behavior?
Edited by user 29 August 2024 07:39:06(UTC)
| Reason: Not specified
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.