The possibility of creating your own Room added
Choose the base for the toolset in the room.
Menu/rooms scripts in UserPrefs/Rooms/ may now be written on Python.
The .py files acceptable instead of .cpp, you may use python syntax and same functions names.
Learn 3DCoat – How to create a custom room and some options: How to create your own custom room here inside 3DCoat by Rygaard Creations.
Add Smart Retopo Tool To Modeling Workspace
Edit the Room
We are adding a new command to the existing Menu in this example.
To know any script command, press RMB and MMB at the same time over any command. Doing it command script information is copied to the clipboard and can be pasted into notepad to know it.
For example, we like to add a Vertical Gradient selection to the View Menu on Paint Room currently located at > Top right camera icon → Background → Vertical Gradient.
– Left to Paint Room tab, we can see a wrench icon, Edit the Current Room Settings.
– Press with LMB to show up Edit Menu Panel
To keep changes* active after sessions, Use Script for the menu must be active
* all personal changes are stored at C:\Users\username\Documents\3DCoat-2022\UserPrefs\Rooms\CustomRooms\Paint
– Press Edit… notepad popups are letting us edit: menu.cpp
we like to add: Use vertical gradient to View Menu (i am adding it below Greyscale Panorama, change it to your location choice)
– To know the command, press RMB and MMB at the same time
Greyscale Panorama command is:
// cmd - based script: cmd("$GreyscaleLight"); // UI - based script, need to define the variable somewhere before: UI ui; ui("$GreyscaleLight");
– So, on the menu script, I search for it and found this section:
void CreateViewMenu() { start_main_menu("VIEW"); menu_item("ShadingOptions");///ShadingOptions menu_separator(); menu_item("GreyscaleLight");///Greyscale Panorama
– Now Press RMB and MMB at the same time over > top right camera icon → Background → Vertical Gradient to know the command script line
// cmd - based script: cmd("$GradientBackground"); // UI - based script, need to define the variable somewhere before: UI ui; ui("$GradientBackground");
– I added that line to the Menu View script
void CreateViewMenu() { start_main_menu("VIEW"); menu_item("ShadingOptions");///ShadingOptions menu_separator(); menu_item("GreyscaleLight");///Greyscale Panorama menu_item("GradientBackground");///Clear Background Image menu_item("VIEW_SHADED");///Smooth Shade menu_hotkey("5", 0, 0, 0);///5 menu_item("VIEW_RELIEF_ONLY");///Relief Only menu_hotkey("1", 0, 0, 0);///1
– Press OK to close Edit the Room panel
– that’s all. Enjoy editing your own Menus.
Advanced customization using right button script
By Rygaard: In this video series, you will start the process of advanced customization of the right mouse button through the rmb script. Therefore, we will be able to customize exactly the right-click action menu in 3Coat.