- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
3D artist needs help with click-hold script...
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-22-2011 12:22 PM - edited 07-22-2011 12:36 PM
I'm a 3D artist in the game industry. The G13 has been a huge help to me. Especially in reducing RSI pain related to long hours and familial hand Tremor.
So my question...
I use Maya for animation. One key combination throws my hands into a fit. It requires dragging the mouse while holding Shift + Alt + Left click + Middle click. (If anyone is curious this command is for scaling curves in the graph editor.)
I've tried creating a macro. But it seems to require two keys. One to initiate Hotkeys+Click hold and one to trigger Hotkeys release+Click release. I really need a single key, thus I assume a script is needed.
If anyone could help it would be much appreciated.
Thx
-B
Re: 3D artist needs help with click-hold script...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-22-2011 01:31 PM
function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 22 then
PressKey("lshift")
PressKey("lalt")
PressMouseButton(1)
PressMouseButton(2)
elseif event == "G_RELEASED" and arg == 22 then
ReleaseMouseButton(2)
ReleaseMouseButton(1)
ReleaseKey("lalt")
ReleaseKey("lshift")
end
enduntested, but probably ok. this script is for G22, change "22" to something else if you want to use a different G-key (and don't forget to bind that key to the "Script" action if you're using v3.06 drivers; in newer drivers this step isn't necessary).
for PressMouseButton() and ReleaseMouseButton(), I think 1 is left mouse button, 2 is middle mouse button, and 3 is right mouse button, but I'm not 100% certain.
-ken
I do not work for Logitech. I'm just a user.
Re: 3D artist needs help with click-hold script...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-22-2011 04:28 PM
PERFECT. Works exactly how I hoped!!
Your script is also a great template for other simple click+drag commands. This is going to be extremely helpful now that I can visualize the basics of how it works.
Thanks again!
-B
