[Closed] Does Max support onkeypress / release?
Often, when I work in UV editor, I want to toggle “Select element” on/off.
So I use the hotkey 4.
I was thinking that having a way to press the 4 key and and release it once I am done selecting.
Is that possible?
Right now only Edit/Editable have temporary overrides (shown as Bold in the Keyboard Customize dialog), and I have no idea if Autodesk plans to expand that or not. You may be able to achieve it through maxscript, but you or someone else would have to write the script.
-Eric
Thanks Eric,
yeah I noticed the new feature for editable poly. But I think it can be used for more than just Editable Poly.
Now that you are mentioning this; Maybe I should try out to map the 4-key the same way as the other with temp overrides…
According to the help file only the bolded Edit/Editable Poly commands can use the Temporary Override. Not sure what the best approach for maxscripting your own solution.
NOTE: I just realized that you posted this to the maxscript section.
-Eric
here is a script that toggles “select element” mode:
(
if iskindof (modi = modpanel.getcurrentobject()) Unwrap_UVW do
(
modi.setTVElementMode (not modi.getTVElementMode())
)
)
you can use it as macros and map it to any key
to get key release event you can use a timer (+ small c# help).
denisT he is looking for a Temporary Override situation. In other words when the key is held down the “Select Elements” is toggled on, however when not pressed it is turned off.
-Eric
i understood. but you are absolutely right – there is no way to do it for Uwnrap_UVW keyboard set without a trick