Hello all
I have a recent problem with my setup, originally I had win 7 with my g13 controlling a number of keys for Blender, I had a sort of quirky error that allowed me to toggle between num 1 and num3 using just one key. It worked great on win 7 but due to a recent install and upgrade I cant do that now. I want to try and instead make it work in Blender through some tweaking of code or user keys. I figure it must be possible due to being able to switch between ortho and perseptive using just one key. Does anyone know what I could do to make this happen? Ive looked at the user keys but Im not a coder so other then changing key bindings Im a little in the dark. Could anyone help?
Regards
TDW
You can attach a LUA script to your g13 profile which can handle that.
Yeah I’ve been looking for some way to do that today, the main logitech site doesn’t seem to know anything and the only info I can find is for how to install lua codes using a key profiler, but nothing about how to code in LUA or how to do the install on a windows 10 machine with the latest software.
Just right click on the profile in Logitech Gaming Software. There you should see something along the lines"edit script" (not sure about precise term because I’m not runn9ng the english version). This will take you to a build in script editor with a PDF of Logitech/LUA Api in its Help menu.
Will provide a example of a script, when I’m at home. It’s no fun writing code on mobile. You’ll have around midday.
Here´s how it works for my G600:
will lead you to
I take from you´re post that don´t have a lot coding experience. So here´s the code:
state=0
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
if state==0 then
PressAndReleaseKey("num1")
state =1
else
PressAndReleaseKey("num3")
state=0
end
end
end
however this won´t work for your G13 and is just for clarifying that it actually works.
Code for your device should be:
state=0
function OnEvent(event, arg, lhc)
if (event == "G_PRESSED" and arg == 1) then
if state==0 then
PressAndReleaseKey("num1")
state =1
else
PressAndReleaseKey("num3")
state=0
end
end
end
This should give you the desired behaviour when G1 is pressed. Edit the “1” in line 3 to change to a different G_Key. Unfortunately I can´t test this due to not having a G13.
Let me know if it worked out and happy blending.
Edit: If this doesn´t work please try to remove “, lhc” in line 2.
Edit 2: I actually realised that this could result in funny behaviour. Like when youre switching the first time to front view and then manipulate view to user the next press will send you to right view. So youd need two presses to get in front view. If that´s OK for you, were done. If not, we have take extra steps. And then it depends on you´re other hardware. When using a G-series mouse also it´s easy…
Sorry for the delay I had a rough work day yesterday.
This is fantastic! I had to experiment with how to apply it to the script but it works great! Thank you!
Just in case anyones interested in my setup for the g13 here is a screen shot. Im going to experiment some more on this to see if I can multi key any of the other buttons. Thank you very much m_squareGFX .
Quick addendum Im now trying to use the same code to make a top/bottom button but I cant get it to switch, is the code “ctrl+7”? At the moment I got it looking like this:
I would do it this way:
PressKey("ctrl")
PressAndReleaseKey("num7")
ReleaseKey("ctrl")
Hmm cant seem to make it go back from bottom, been trying various ways of writing the code in, but still only got the front and side to work (which is enough to get me back to work anyway), Ill experiment some more later tomorrow and see what I can figure out. Thanks again for the help.
Any chance you could send me your g13 profile ?
I’ve had a g13 for a while now but only ever used it for color grading in davinci resolve
I’d now like to apply it to Blender
Damn sorry I only just saw this after coming back home, if your still after my g13 blender setup ill post it up.
Hi, can I ask you for a profile from your G13 for Blender


