10-03-2020, 09:38 AM
(This post was last modified: 10-09-2020, 07:29 AM by sciroccorics.)
Hi everybody,
Is there a possibility in Wings3D to define some hotkey (i.e. keyboard shorcuts) to perform combined actions instead of a single one ?
I guess that this would not be possible using the standard binding process (Ctlr+Insert), where the user has to select ONE single menu entry when creating a new hotkey. But if I take a look at the "preferences.txt" file in the user configuration folder, or even in the "wings3D.pref" file generated by using "File -> Save Preference Subset", both files seem to show pure Erlang instructions (it's only a guess, because I don't know the Erlang programming language, my programming skills only include Python and C).
In these files, I can see statements like:
which means "bind Ctrl+S to the File->Save" action, if I am right. So, it may be possible to add TWO sequential actions for a single hotkey using a similar syntax. But as I don't know the Erlang syntax, it is not clear for me how to add 2 actions in sequence in the same binding instruction.
Here is an example for the kind of multiple actions, I would like to include:
Alt+V = Put in Vertex mode AND align camera to current selection
I've got dozens of such multiple actions that I always perform in sequence, so it would be really cool to bind these sequence to a single hotkey, even if it means manually tweaking a config file, that's not really a problem.
No doubt that Micheus, as an Erlang expert, could provide some hints about this request.
Is there a possibility in Wings3D to define some hotkey (i.e. keyboard shorcuts) to perform combined actions instead of a single one ?
I guess that this would not be possible using the standard binding process (Ctlr+Insert), where the user has to select ONE single menu entry when creating a new hotkey. But if I take a look at the "preferences.txt" file in the user configuration folder, or even in the "wings3D.pref" file generated by using "File -> Save Preference Subset", both files seem to show pure Erlang instructions (it's only a guess, because I don't know the Erlang programming language, my programming skills only include Python and C).
In these files, I can see statements like:
Code:
{{bindkey,{115,[ctrl]}},{file,save},user}.
which means "bind Ctrl+S to the File->Save" action, if I am right. So, it may be possible to add TWO sequential actions for a single hotkey using a similar syntax. But as I don't know the Erlang syntax, it is not clear for me how to add 2 actions in sequence in the same binding instruction.
Here is an example for the kind of multiple actions, I would like to include:
Alt+V = Put in Vertex mode AND align camera to current selection
I've got dozens of such multiple actions that I always perform in sequence, so it would be really cool to bind these sequence to a single hotkey, even if it means manually tweaking a config file, that's not really a problem.
No doubt that Micheus, as an Erlang expert, could provide some hints about this request.
>>> sciroccorics <<<