PDA

View Full Version : Customized Shortcut Keys and Advanced Features for ChronoSculpt 1.0.1



jboudreau
04-27-2014, 12:24 AM
Hi Guys

I saw that ChronoSculpt didn't have many shortcut keys. So after examining and going through many files within the ChornoSculpt folder I was able to modify the CsShortcuts.lua file to allow customizable shortcut keys for almost all buttons, and menus. I also managed to open up some advanced features like bevel, subdivide, triangulate mesh, voxelize etc. These advanced features are not very stable but pretty cool that they are hidden inside the program.

The only buttons I have not been able to create a shortcut key for is Setup Mode and Global Edit Mode. I'm still working on this. Feel free to change the shortcut keys to whichever ones you want.

Here is the CsShortcuts.lua file. 121630

Steps to Install:

1. Backup you original CsShortcuts.lua file which is located in the C:\Program Files\NewTek\ChronoSculpt1.0.1\bin\cs\startup folder on a PC (I'm using windows 7 64bit not sure where it's located on a mac)
2. Download the file provided here
3. Replace the file in the C:\Program Files\NewTek\ChronoSculpt1.0.1\bin\cs\startup folder with the one you downloaded. If you get access denied you have to take ownership of the file. I used a program called takeownership their are probably other ways how to overwrite the original file. Another thing you can do is copy the file to your desktop and open it from there. once you edit it then copy it back to the original location.

Steps to Change Shortcut Keys

1. Open the CsShortcuts.lua file in notepad and change what ever shortcut key you like

Hope these come in handy

Here are some screen grabs of the shortcut keys

121628121629

Thanks
Jason

jboudreau
04-27-2014, 01:11 AM
Please re-download the new file I just uploaded above. There was a problem with the previous one that I had uploaded

Thanks,
Jason

OnlineRender
04-27-2014, 04:48 AM
Please re-download the new file I just uploaded above. There was a problem with the previous one that I had uploaded

Thanks,
Jason

add

add_shortcut("space", "Select")
add_shortcut("]", "SelectConnected")
add_shortcut("shift+{", "ShrinkSelection")
add_shortcut("shift+}", "GrowSelection")
add_shortcut("esc", "DeselectAll")
add_shortcut("right", "SelectLoop")

add_shortcut("shift+x", "Box")
add_shortcut("shift+d", "Subdivide")
add_shortcut("del", "Remove")
add_shortcut("f2", "Center")
add_shortcut("y", "Rotate")
add_shortcut("e", "Extend")
add_shortcut("b", "Bevel")
add_shortcut("t", "Move")
add_shortcut(";", "DragNet")
add_shortcut("c", "Connect")
add_shortcut("shift+t", "Triangulate")


some are a little buggy

OnlineRender
04-27-2014, 04:54 AM
sorry should have read ... however global / setup mode looks like


sits in the WSCsidebar.lua


begin_group("Group.Globals")
insert_bool(cs_global():property("setup"))
local global_widget = insert_bool(cs_global():property("global"))
insert_bool(lw_app():property("tablet"))
insert_bool(cs_global():property("show_transport"))
lw_link_not(cs_global():property("setup"), global_widget:property("enabled"))
end_group()

jboudreau
04-27-2014, 02:53 PM
add

add_shortcut("space", "Select")
add_shortcut("]", "SelectConnected")
add_shortcut("shift+{", "ShrinkSelection")
add_shortcut("shift+}", "GrowSelection")
add_shortcut("esc", "DeselectAll")
add_shortcut("right", "SelectLoop")

add_shortcut("shift+x", "Box")
add_shortcut("shift+d", "Subdivide")
add_shortcut("del", "Remove")
add_shortcut("f2", "Center")
add_shortcut("y", "Rotate")
add_shortcut("e", "Extend")
add_shortcut("b", "Bevel")
add_shortcut("t", "Move")
add_shortcut(";", "DragNet")
add_shortcut("c", "Connect")
add_shortcut("shift+t", "Triangulate")


some are a little buggy


Hi

Yeah I put most of these in the shortcuts file. I didn't add all of them because most of them don't even do anything in chronoSculpt. It's funny why your even able to activate some of these things.

Thanks,
Jason

ernpchan
05-14-2014, 08:34 PM
Thanks for sharing this!

ernpchan
05-16-2014, 05:35 PM
What would be the proper string to map the numeric keypad "+" key to Load Object?

This doesn't work.


add_shortcut("+", "LoadObject")

OnlineRender
05-23-2014, 05:04 AM
What would be the proper string to map the numeric keypad "+" key to Load Object?

This doesn't work.


add_shortcut("+", "LoadObject")

I don't think it would work because you have plus value in the code , it would either be a LW key code or "numeric_plus" or something along they lines , I shall find out

OnlineRender
05-23-2014, 05:18 AM
how to piss off MG and mod the side icons :)


WcSidebar.lua

Line 72 *



begin_group("Group.Project")
insert(wmenu_button(lw_tr("Group.File"), self:create_file_menu()))
insert(wmenu_button(lw_tr("Group.Edit"), self:create_edit_menu()))
end_group()




self:insert_fixed_space(10)
insert_sized(wbutton_icon("sculpt.svg" , function()
lw_execute("Draw", true)
end), 100, 25)
self:insert_fixed_space(5)

insert_sized(wbutton_icon("pin.svg" , function()
lw_execute("Pin", true)
end), 100, 25)
self:insert_fixed_space(5)

insert_sized(wbutton_icon("drag.svg" , function()
lw_execute("Grab", true)
end), 100, 25)
self:insert_fixed_space(5)

insert_sized(wbutton_icon("smooth.svg" , function()
lw_execute("Smooth", true)
end), 100, 25)
self:insert_fixed_space(5)

insert_sized(wbutton_icon("transform.svg" , function()
lw_execute("PartTransform", true)
end), 100, 25)
self:insert_fixed_space(5)

insert_sized(wbutton_icon("buldge.svg" , function()
lw_execute("Buldge", true)
end), 100, 25)
self:insert_fixed_space(5)


insert_sized(wbutton_icon("pinch.svg" , function()
lw_execute("Pinch", true)
end), 100, 25)
self:insert_fixed_space(15)


This will change the text at the side to icons :) http://www.pasteall.org/pic/show.php?id=71709

ernpchan
05-23-2014, 12:10 PM
Oh that's a good find.