With the multi-cut tool I can insert a edge loop at certain % along the selected edge, I am looking for a way to do this via a hotkey/shelf item, thus eliminate the back and forth switching of tools)
Using the “echo command” feature of the script editor, the multi-cut prints something like the following for the operation.
polySplit -ch 1 -sma 180 -ep 248 0.510364 -ep 249 0.510364 -ep 260 0.510364 -ep 262 0.510364 -ep 264 0.510364 -ep 266 0.510364....
It seems the code is unique to the what is selected so its hard to come up with a generic solution. I tried
polySplit -ch 1 -sma 180 -ep 1 0.50;
I dont get any errors but I also dont get the expected results, nothing seems to have happened.
I have tried a few others things but no luck, I would appreciate any help in the right direction here. Thanks.
You could write a script that did this; get the selected edge, get it’s connected faces, get one opposite edge, repeat this until an end or the starting edge is found, then construct a polySplit
at 0.5 for each edge id you found, etc… but I think an even easier (and maybe more versatile) solution is to instead make a hotkey that when PRESSED stores the current tool, switches to the multi-cut tool with 50% pre-set. Then you can (while holding the hotkey) click anywhere to insert a loop as normal, then when the hotkey is RELEASED, simply restore the original tool. Now you have a hotkey that lets you polySplit, without losing your current tool - so basically avoiding the switching.
Maya lets you do this easily because with hotkeys you have separate PRESS and RELEASE states/events. This will be far easier than writing a script to do that, if all you are really concerned about is having to switch tools.
1 Like
Very clever idea (on your second solution), I can see many uses for this.
I did encounter press and release bindings in Maya hotkey editor but did not much of it. Now I know.
Cheers!