Add Trim Point | Hotkey

Next
 From:  Berube
8636.1 
Hello everyone.

Hope all is well and that your CAD journey is rewarding.

Anyone knows how one could make a hotkey for the Trim -> Add Trim Point command?

Bests,

-J

EDITED: 18 Oct 2017 by BERUBE

Image Attachments:
Size: 475.4 KB, Downloaded: 72 times, Dimensions: 1427x748px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8636.2 In reply to 8636.1 
Hi J, try setting up a shortcut key with this as the command part:

script: /* Trigger Add trim points in Trim command */ moi.ui.fireUIEvent( 'addtrimpoints' );

You'll need to be in the Trim command already though.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8636.3 In reply to 8636.2 
Hi Michael.

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

Cheers.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Berube
8636.4 
Ah greatness!!

Thank you so much, this is perfect!

Bests,

-Berube
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  klaudio
8636.5 In reply to 8636.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?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8636.6 In reply to 8636.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8636.7 In reply to 8636.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  klaudio
8636.8 In reply to 8636.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All