Repository navigation
Commit da88e1e
committed
Split the sidebar into three parts and rename the add-on CADshot (1.13.0)
Three parts
- A Part switcher at the top of the sidebar picks Clay, Patches or
Variants; every panel polls on it, so Clay never shows a texture
control and Patches never shows a camera one
- Top-level panels per part: Clay 8, Patches 6, Variants 11, in
place of one stack of 18 that showed everything at once
- The part writes through to render_mode, pool_variants and
pool_patches rather than replacing them, so the renderer, the
command line, the manifest and provenance need not know parts
exist; it fires only on a change, so Clay can still be set to
Full or Both from its own Output panel
- Lighting, the ground and the base material poll on needs_lighting()
rather than on the part: clay carries Workbench's own studio light
and the ground is hidden for any non-Full render, so they show only
when something in the run is lit by the scene
- Products holds the render list, and in Variants each product's own
material choice, which is what decides whether it takes a draw
- Camera protocols, annotations, drawings, randomization and the
manifest moved into one collapsed Dataset & research section
- The guide is written per part
Material patches as a part of their own
- Render All plans patch jobs with no product, no camera and no
stage, so patches gained the progress bar, the time left, Esc,
Skip Existing and manifest rows the standalone operator lacked
- Texture Size is hidden for patches, which show one repeat filling
the frame whatever size the real part would be
- part = PATCHES runs from a job file with no inputs at all
Pre-flight
- The Patches part is no longer asked about products, cameras,
views, naming clashes or lighting
- New error: patches with Workbench as the engine and the Cycles
add-on off, which used to raise mid-run when the stand-in swap
to Cycles had nothing to swap to
Rename
- bl_info, the sidebar tab, panel labels, the status bar, console
prefixes, the manifest's tool field and the citation say CADshot
- The add-on folder, the MV_ collections, the mv. operator names and
the lighting preset folder keep theirs, so blend files and job
files written before the rename open unchanged
Documentation
- README: a Three parts section, Workflow reordered to follow the
panels (Products, Standardize, Views, Stage, Texture Pool,
Output), troubleshooting for a hidden panel and a missing Stage
control, and a sentence in Orient Products that had lost its start
Tests
- test_parts.py: the write-through, which panels each part polls in,
every draw() run through a layout shim, patches rendered with no
product in the scene, mode-aware pre-flight, and a patches-only
job file through the command line1 parent 0004b89 commit da88e1e
5 files changed
Lines changed: 1325 additions & 620 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
0 commit comments