function sysCall_userConfig()

Requests or suggestions for new features
Post Reply
nex
Posts: 29
Joined: 07 Nov 2016, 15:48

function sysCall_userConfig()

Post by nex »

Hello,

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).

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: function sysCall_userConfig()

Post by coppelia »

Hello,

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.

Cheers

nex
Posts: 29
Joined: 07 Nov 2016, 15:48

Re: function sysCall_userConfig()

Post 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.

Post Reply