Page 1 of 1

function sysCall_userConfig()

Posted: 16 Oct 2019, 18:08
by nex

Currently there is no way to show a custom config window for a scene object, upon user request.

The "Resizable floor" object solves this by watching the selection and showing a window each time the floor is selected. But this can be quite annoying when a window pops up each time when you really want to do something else, such as moving objects around (where the window covers parts that matter).

Therefore I suggest a new sysCall_userConfig() (or another name with a similar function), that gets called when double clicking a cog icon in the scene hierarchy (in a similar location where you already have the script icon).
It could also be an icon that is similar to the script parameters icon (three sliders/switches), but with another background color.

The icon could also be a person's head, since it would represent the default action of a customization script; or anything else you deem best.

But it would really be nice if there was a distinctive trigger to react to, when you want to show a window/ui that manipulates the scene object, instead of having it pop up as a side effect of another action (such as merely selecting the scene object).

Re: function sysCall_userConfig()

Posted: 17 Oct 2019, 09:46
by coppelia

that's actually a very good idea. Probably best would be to have V-REP look for such a callback function when double-clicking the slider/switch icon. If it is found, the default functionality would be ignored and the user callback called.


Re: function sysCall_userConfig()

Posted: 18 Oct 2019, 02:59
by nex
That solution would work good as well!

Maybe adding a function to call the original dialog/window would be useful then, so that people could add a button to their dialog to show the original one, if necessary.