Itoo Software Forum

Author Topic: Customise keyboard keys for commonly used RC options  (Read 473 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Customise keyboard keys for commonly used RC options
« on: July 15, 2022, 06:19:07 PM »
It would be nice if we could customize keyboard keys for some RC objects like:
- Open Style Editor
- Display Mesh/Quick Mesh/Boxes/Point Cloud
- Disable/Enable Object
- Use Instancing Engine
- Proxy Cache

tnx

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Customise keyboard keys for commonly used RC options
« Reply #1 on: July 18, 2022, 02:15:00 PM »
Hello Dragan, 

Because everyone would want different shortcuts depending on their needs we prefer to leave this to individuals. You should be able to create shortcuts by creating simple maxscript macros and assigning them in the usual way. Below are the Maxscript commands relevant to your requests.

- Display Mesh/Quick Mesh/Boxes/Point Cloud
$.vmesh = 0 -- Mesh
$.vmesh = 1 -- Boxes
$.vmesh = 2 -- Adaptive
$.vmesh = 3 -- Points Cloud
$.vmesh = 4 -- Quick Mesh

- Disable/Enable Object
$.disabled = on|off

- Use Instancing Engine
$.rendermode = on|off

- Proxy Cache
For Disabled, use $.setProxyMode 0 "". It returns an empty string.
For Embedded, use $.setProxyMode 1 "". It returns a proxy's size.
For External, use $.setProxyMode 2 "proxyFileName.rcproxy". It creates and saves the proxy (overriding the file if it exists), and returns a description error in the event that it fails.

- Open/Close Style Editor
Not currently possible - added to the wishlist

Cheers,
Paul
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Customise keyboard keys for commonly used RC options
« Reply #2 on: July 18, 2022, 02:38:37 PM »
Thank You  ;)
I`m progressing  :D