Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Dragan on July 15, 2022, 06:19:07 PM

Title: Customise keyboard keys for commonly used RC options
Post by: Dragan 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
Title: Re: Customise keyboard keys for commonly used RC options
Post by: Paul Roberts 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
Title: Re: Customise keyboard keys for commonly used RC options
Post by: Dragan on July 18, 2022, 02:38:37 PM
Thank You  ;)
I`m progressing  :D