Preserve texture set hover in the IOR branch merge

This commit is contained in:
FredApps committed 2026-11-26 08:27:47 +01:00
commit 2cbbebfd3f
428 files changed
+24761 -4005

No files matched your search

+27 -8
View File
@@ -135,9 +135,20 @@ alone) and `alphaInvert` (swaps paint and no paint inside the stamp square). The
procedural, library and imported alphas alike and are returned by `tool.brush` with the other
values. The alpha's rotation is the brush `angle`.
Bake mode applies edits in Common Settings and Mesh Map Settings to every texture set. Each
set keeps its own enabled mesh-map checkboxes and Include in Bake flag. Edits update only the
changed fields; Restore Defaults resets the whole parameter section across all sets.
Bake mode applies an edit in Common Settings or Mesh Map Settings to the texture sets sharing that
group's settings: Common Settings, and each map's settings, are shared by any set of texture sets
(at first every set shares them). Each set keeps its own enabled mesh-map checkboxes and Include in
Bake flag. An edit reaches the sets sharing its group with only the fields it changed, so values
that differ elsewhere stay; Restore Defaults resets the whole parameter section across those sets.
`bake.sync {group: "common" | <map id>, ts: [indices] | "all"}` makes exactly these sets share the
group from now on; sets joining take the settings the group shares. `bake.copy {what: "settings" |
"checked" | "check", map?, from?, ts}` copies once: every setting with which maps are checked (or
one map's settings), which maps are checked, or checks one map; settings also reach the sets sharing a group with a target, while
checkboxes stay per set. Each is one undo step. `bake.settings` with `model` keeps each set's sync
membership. A `patch` containing `sync` is rejected. Use `bake.sync` to change membership.
For `bake.copy`, `from` takes a texture set index and `map` takes a mesh map ID. Omit either field
or pass `null` to use its default.
`bake.settings {ts: "all", patch: {maps: {ao: {parameters: {rays: {rays: 128}}}}}}` changes
only AO secondary rays. A `patch` uses the nested `BakeSettings` field names and named enum
@@ -145,7 +156,8 @@ values returned in the command's `model` result; omitted fields retain each set'
`null` clears optional fields such as `common.resolution_height`. All targeted sets are validated
before the edit is applied as one undo step. `model` still replaces the complete settings;
when combined, `patch` follows `model`, then the flat command parameters apply. Omitting `ts`
still targets the active set for scripts that need individual control.
still targets the active set. Settings passed to `bake.run` follow the same sync rules, while only
the requested texture sets bake. The settings and baked maps share one undo step.
Bake presets are saved settings in the UI state (Mesh Map Bakers > Presets). Loading one is
`bake.settings {ts: <index>, model: <the preset's settings>, preserveEnabled: true, preset: true}`; Apply to All
@@ -223,7 +235,7 @@ keeps its state in a throwaway file.
| `ui.inspect` | | UI state, viewport rect, fps, bake progress (`baking`, 0..1), the running bake's stage (`bakeStatus`, e.g. "Baking Ambient Occlusion (2/4)") and live preview (`bakePreview`, see *Live bake preview*), toasts, `titleBar` (who draws the title bar this run: `app`, `integrated` on macOS, or `system`) |
| `ui.menu.list` | | the menu catalog: `{menu, submenu, label, id, shortcut, implemented, enabled, checked}` |
| `ui.menu.invoke` | `{id}` | behaves like a menu click (may open a window; `ui.resetUi` opens its question; `file.exportMesh` opens the Mesh Export Options prompt, whose Export asks for the file; `ui.view.export` opens the right bar's Export panel). `{"id": "ui.layout.apply", "name": "<layout>"}` switches to a legacy named panel layout (still accessible through assigned shortcuts) (panels only; mode, zoom and wireframes stay) and errors when no layout has that name. `ui.layout.save` still saves the active mode; `ui.layout.save.painting`, `ui.layout.save.rendering` and `ui.layout.save.baking` ask where to save only that mode's panels and view arrangement as a JSON file (without preferences or recent projects); loading preserves the other modes, `ui.layout.load` asks for one to load ("Load UI Layout"); `ui.toolbar.docks` and `ui.toolbar.tools` show or hide the right bar and the painting tools; the disabled Snooze Autosave and Resources Updater buttons stay visible when Tools is off; `ui.view.renderer` toggles the Renderer Settings panel (Rendering Mode only). `{"id": "ui.layout.swap"}` swaps the 3D and 2D views of the split layout (F4) |
| `ui.menu.invoke` id `project.sample` | `{id}` | File > Open Sample Project opens a file picker for a `.tcraft` project. The direct `project.sample` engine command still creates the generated sample for automation. |
| `ui.menu.invoke` id `project.sample` | `{id}` | File > Open Sample Project opens a picker for a `.tcraft` file. On desktop, it copies any missing bundled samples (currently `Material Ball.tcraft`) into `Samples` under the data folder and opens the picker there. If preparation fails, it shows an error and opens the picker without a start folder. In the browser, the picker uses local files. The direct `project.sample` engine command generates a sample for automation. |
| `ui.menu.invoke` id `ui.saveAsTemplate` | `{id}` | File > More Save Options > Save As Template opens a save dialog in the user templates folder. The choice supplies the file path and template name to `project.template.save`. `ui.saveReduced` (Save and Reduce File Size) is listed as not implemented and not enabled |
| `ui.menu.invoke` ids `ui.help.releaseNotes`, `ui.help.showLog`, `ui.help.exportLog` | `{id}` | Help > Release Notes opens the releases page in the browser; Help > Show Log opens the current desktop run's rolling `log.txt` in the system text-file handler; Help > Export Log exports the session log with each entry’s recorded UTC time, severity and source (a save dialog on desktop with a `Log_TextureCraft_<version>_<date>_<os>_<gpuMode>.txt` name, a download on the web) |
| `ui.menu.invoke` id `ui.wireframe` | `{id}` | Show mesh wireframe: shows or hides the mesh wireframe in the 3D and 2D views (the Display Settings check box). It has no menu entry and no default key; bind it in Settings > Shortcuts. The key bindings `camera.next` and `camera.previous` (Select next camera `>`, Select previous camera `<`) and `ui.mode.bake` (F8) run the same commands as before |
@@ -354,6 +366,11 @@ takes a font family, not a path: it reads only the system's font folders.
`file.close` leaves no project open: `session.inspect` then reports `projectOpen: false`, `command.list` marks every command but the project-independent ones as not enabled: the ones that open or create a project (`file.open`, `file.new`, `project.new`, `project.sample`), `project.inspect`, `viewport.frame`, `project.templates`, the `export.preset*` commands (`export.presets`, `export.preset.get`, `export.preset.save`, `export.preset.remove`) and the library and preset listings (`brush.preset.list`, `alpha.list`, `filter.list`, `material.list`, `mask.smart.list`, `text.fonts`), each still subject to its own enabled check. The rest are refused with "no project is open" until a project is opened or created. A `texturecraft --control` run starts with the sample project (an empty material ball with `--empty`); the app without `--control` starts with no project.
The desktop control channel accepts `rebuildUvs: true` on `file.new` to generate a new UV layout.
The default keeps a complete authored layout and unwraps meshes that need UVs, including on reopen.
With `rebuildUvs: true`, the project file saves the generated layout. Reopening or calling
`file.reimportMesh` without a path reuses it. Reimporting from a mesh file on disk rebuilds its UVs.
| Tool | Params | Notes |
|---|---|---|
| `session_inspect` | | The whole session as JSON |
@@ -662,9 +679,11 @@ with `material.apply` instead. The command rejects linked MaterialCraft fills. T
- `effect.filter.restoreDefaults {effect?}` puts a filter's parameters back to its defaults (name,
channels and blending stay) and returns `{changed}`.
- `layer.fill.resetProjection {layer? | effect?}` puts the Fill section back to a new fill's (same
projection kind; a placed frame, the symmetry and the sources stay); `layer.fill.resetFrame` puts a
warp's frame back around the mesh with its corners unpulled. Each is one undo step, or none when
nothing changes.
projection kind; a placed frame, the symmetry and the sources stay). `layer.fill.resetFrame
{layer? | effect?, keepCorners?: bool}` puts a warp's frame back around the mesh. By default it
resets the corners. With `keepCorners: true` it preserves the corners and also resets projector
rotation and scale. Projection Depth, crop and culling stay. Each reset is one undo step, or none
when nothing changes.
## MaterialCraft materials