Tool enhanchement - embed objects or hidden arguments
Hi.
I think that the custom tool feature in Geogebra is very nice, and it really can cut down the time it takes on more complex tasks. However there is one thing that bores me.
Say I have a tool that need 5 arguments. You be sure that there is at least one object that never moves (i.e. a static function), but nevertheless I have to tell the tool to use it every time I use the tool.
Have a look at the file I upload. There is one function (f), one input (Point B) and one output (Point H). As for now, every time I want to use the tool I have created, I have to specify the function f. Because I using a tool very frequently, I do not want to enter the name of the function every time I use the tool.
So here's my proposal: Add a new tab in the "Create New Tool" (abbr. CNT) and call it something like "static inputs". That is inputs that work within the tool, but the user doesn't have to specify it when using the tool.
Look and feel should be similar to the "Input Objects" tab, and when the user pick an input object, it "transfers" from "Input Objects" list to "Static Input Objects" list.
Also having the posibility to embed a function or other static object would be very nice. That could be aranged by adding a chechk box next to each item in the "Static Input Objects" list that makes the static object embed in the tool, rather than being a hidden argument.
Bottom line is: I wish to be able to make a custom tool that requires less number of arguments from the user than the number of required arguments needed for the tool to operate adequately.
Thanks :D
hello
try this tool.
for trying you must select the tool, then clic for many points and find out the function in use
https://ggbm.at/1391015
i got it deleting a1="f" in the macroinput section of geogebra_macro.xml opening it with winzip.
do you wanted this?
i do not know if it works for another tools , and my english is very poor for better explanation.
saludos
Hi,
If you use
D = Intersect[-x+x³, a] before creating your tool, then input B is all that's needed.
Simon
Thanks. That helps :D
Still, I need to use command line to achieve this, and I would probably have forgotten the workaround in a few months.
It's a fine workaround, but still I wish for the proposed feature :)
Comments have been locked on this page!