MoI discussion forum
MoI discussion forum

Full Version: Add Trim Point | Hotkey

Show messages: All  1-2  3-8

From: mkdm
18 Oct 2017   [#3] In reply to [#2]
Hi Michael.

Thanks a lot for this very useful tip!
...and thanks also to you Berube for the right answer :)

Cheers.
From: Berube
18 Oct 2017   [#4]
Ah greatness!!

Thank you so much, this is perfect!

Bests,

-Berube
From: klaudio
2 Dec 2017   [#5] In reply to [#2]
Hi Michael.

You said to add that script line for Add Trim Point but you have to be in Trim command already.


Is there a way to have shortcut running essentially two commands, one after the other. First, run "Trim" command and then follows the "Add Trim Points" all with one shortcut?
From: Michael Gibson
3 Dec 2017   [#6] In reply to [#5]
Hi klaudio,

re:
> Is there a way to have shortcut running essentially two commands, one after the other. First,
> run "Trim" command and then follows the "Add Trim Points" all with one shortcut?

Sorry no, not currently unless the command is specifically written to look at parameters given to it.

But I have added a mechanism for the next v4 beta so that if you give a parameter that matches the id of a button in the command's UI it will trigger it as if it were pressed when the control is shown. So with this in place setting up a keyboard shortcut for "Trim addtrimpoints" should do what you're looking for.

- Michael
From: Michael Gibson
3 Dec 2017   [#7] In reply to [#5]
Hi klaudio, also I extended it a little bit more to apply to other controls as well. So in the next beta you'll be able to set up shortcut keys that either trigger buttons in the command's UI (by giving the button's id value), and also set values for things like dropdown and checkbox controls. These are done by giving an id=value pair.

So some example shortcuts that you'll be able to set up in the next beta:

Trim addtrimpoints removekeepmode=keep

Trim addtrimpoints removekeepmode=remove

Trim isocurve isodir=u

Trim isocurve isodir=v

Line bothsides=true

Extrude tapered


For a button supplying the button's id in the command parameters will trigger the button when it is first displayed, it will be the same as if you clicked the button.

For other controls the given value will be used to initialize the control instead of the last-used or default value like normally happens.

- Michael
From: klaudio
5 Dec 2017   [#8] In reply to [#7]
Thank you very much on quick reply Michael. Glad that you will add it for v4, it will be a handy little thing for sure!

For now in the v3 current workflow will work just fine too where i have "T" assigned to Trim command then once there pressing "Shift+T" goes to adding a trim point. All good! ;)

Best,
Klaudio

Show messages: All  1-2  3-8